[Lazarus] Example requested for TList and Sort using data type of Object (or record).

Sven Barth pascaldragon at googlemail.com
Thu May 12 10:24:04 CEST 2011


Am 12.05.2011 09:12, schrieb Graeme Geldenhuys:
> Earlier Sven Barth wrote:
>>
>> The "absolute" version needs (in the example) 2 * SizeOf(Pointer)
>> less stack space and also the two assignments aren't needed.
>
> Thanks for that. I guess I need to start using this language feature
> then. I'm all for optimizations - every cpu cycle counts. :-)

If you use a method/function often that could indeed pay off.

What I don't know is whether one of FPC's optimization steps solves this 
already (I have tested without optimization).

Regards,
Sven




More information about the Lazarus mailing list