2 ms·
I'm curious what the takeaway from this is. Specifically, I'm curious how well these results translate to the use of a hash table. If your application is even
by taeric 13y ago
I'm curious what the takeaway from this is. Specifically, I'm curious how well these results translate to the use of a hash table.
If your application is even 80% giant hash table lookup, I would presume it is doing so in a fairly highly multithreaded environment. Caching systems, maybe?
Otherwise, I would think the times where this benchmark matters are few and far between. If you find you are looking up a ton of items in a hash table in such a way that that shows up in a profile, you are probably best off moving to a sorted list and just iterating through the items as you need. Right?