Forum > General

Using generics

<< < (3/3)

Out of curiosity is the TFPGMap faster than key/value or rather string/objects properties of a TStringList? And if so to what extend for ~100k items?

Maybe TDictionaryStringList can help you, it is on LazUtils folder and has an example project. It is optimized for lookup, IndexOf was overriden to use a public Contains function, which uses the map directly instead of a linear search.


[0] Message Index

[*] Previous page

Go to full version