I've read a complaint about TList being slow so I decided to give it a test.
Quite frankly the test showed this is truth, but I couldn't find out why.
I found out that if I copy the TList from classes "as-is" into my unit and use this
copy, it is about 3x faster in certain conditions. I have no idea why this is so but
I think there's something wrong...

I posted my test at http://members.chello.sk/ales/testlist.zip
Just download, unzip and compile:
you'll get swap time and access time for the original TList
uncomment {$DEFINE USEMYLIST} to get the times for my copy of TList

The copy there is unchanged.

Ales Katona

fpc-devel maillist  -  fpc-devel@lists.freepascal.org

Reply via email to