[fpc-devel] for-in-index loop

luiz americo pereira camara luizmed at oi.com.br
Sun Jan 27 20:46:37 CET 2013


2013/1/27 Sven Barth <pascaldragon at googlemail.com>:
> On 27.01.2013 16:27, luiz americo pereira camara wrote:
>>
>>
>> I did some test with generics last year:
>> http://lazarusroad.blogspot.com.br/2012/06/cost-of-using-generics.html
>>
>> I would not use in classes unit
>
>
> That's mostly about the "duplication" problem, which is known (maybe I'll
> try to improve the situation some time).

OK

> What would have been more
> interesting is the performance of the generated code compared with e.g. a
> TStringList or a TObjectList.

Independent of the performance, what's the benefit of replacing the
current implementation by one based in generic?

AFAIK none. It would just require more work, resulting in bigger and slower code

BTW: i use generic myself but mostly in application code. I avoid in
components / libraries

Luiz



More information about the fpc-devel mailing list