> On Jan 9, 2018, at 3:30 AM, Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> 
> wrote:
> 
> Recently I did a very simple test with Delphi XE3 using TList<Integer> and a 
> stock TList. Adding 50,000 and 200,000 integer values to each list, and 
> timing the creation of the list and population of the list. Then I also timed 
> the destruction of the list. I was horified to find out how much slower 
> Delphi's Generics were compared to TList and TObjectList. Destruction was 
> 250x slower in many cases. Creation and population of the list was 5x-10x 
> slower.

What does this have to do with generics exactly? If I understand correctly 
generics are “meta-programming” where they essentially just re-insert a 
generated class based on the template (c++’s naming scheme makes more sense 
imo) but they don’t actually add any runtime code.

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to