Speed of Generic TList<TMyObject) vs. Typecast TList?

Speed of Generic TList
In one of my apps I have a core data structure which uses a Typecast TList to store a list of TMyObjects. There are about 6 million of these TMyObjects scattered among about 33k lists. Speed and memory usage are important. I need to be able to enumerate and access the lists quickly. Memory usage is also important as I have, on occasions, hit the 2 Gb memory ceiling of Win 32!!

My question is, would there be an advantage or disadvantage in converting the Typecast TList to a generic TList?

My criteria would be speed of enumerating / accessing and size of memory footprint - Thanks!

Comments