Hi
As far as I can tell from few tests, if you look after performance of search,
size matters :
Under approximately 50 items, an array/vector of pairs is better
Between 50 and 400 items, an ordered map (like QMap) works better
Over 400, a hash map shows better performance.
But if the usage is running through each item, array/vector of pairs
will be the optimum.
Hth.




Reply With Quote

Bookmarks