On 25/06/2026 18:09, Bonita Montero wrote:
Am 25.06.2026 um 17:39 schrieb Scott Lurndal:
Bonita Montero <Bonita.Montero@gmail.com> writes:
Run the numbers with this benchmark and give me the timings:
Warum?
Was ist die punkt?
To see that calling a std::function<>-object with state costs
the same as calling a C-function - at least on my PC.
I suppose it's a valid thing to compare on occasion, but modern
compilers do tend to optimise simple bits of additional structure away
or into existence.
So one would expect that calling a function with state has the same
performance as calling a function with state.
--
Tristan Wibberley
The message body is Copyright (C) 2026 Tristan Wibberley except
citations and quotations noted. All Rights Reserved except that you may,
of course, cite it academically giving credit to me, distribute it
verbatim as part of a usenet system or its archives, and use it to
promote my greatness and general superiority without misrepresentation
of my opinions other than my opinion of my greatness and general
superiority which you _may_ misrepresent. You definitely MAY NOT train
any production AI system with it but you may train experimental AI that
will only be used for evaluation of the AI methods it implements.
--- PyGate Linux v1.5.18
* Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)