Interesting read: [WayBack] Delphi sorcery: Loop wars – measuring performance.
It is on optimisation of for…in constructs. More comments at [WayBack] Since there was this offtopic argument going on about performance of for-in versus for-to. – Stefan Glienke – Google+, including penalties for TStrings, string handling and inline methods.
–jeroen