[fpc-pascal] For ..in GetEnumerator Allocation
ryan at thealchemistguild.com
Wed Oct 4 10:41:27 CEST 2017
As I understand the for..in loop GetEnumerator method is expected to create a new object each time it’s called and FPC destroys it later when the loos is finished. Can I retain the enumerator and just reset it in-between calls? I’d like to remove all these alloc/deallocs so I can use for..in more efficiently in tight loops.
More information about the fpc-pascal