[fpc-devel] "Blank slate" next version of FPC
Ben Grasset
operator97 at gmail.com
Fri Feb 22 01:34:57 CET 2019
On Sat, Feb 16, 2019 at 5:44 PM Benito van der Zander <benito at benibela.de>
wrote
> it can turn out the enumerators are slower than an old school loop
>
The trick with enumerators is to never make them classes, and use advanced
records instead, I've found. This way you avoid the heap allocation and the
implicit try/finally. Also make sure you inline the MoveNext and
GetCurrent!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190221/78c2ec85/attachment.html>
More information about the fpc-devel
mailing list