Re:In Defense of Linked Lists
by KerrAvon on Friday November 04, 2022 @08:34PM
(#33476250)
I think the cases where lookup is faster for a linearly scanned vector is where the hash computation overhead is greater than a linear scan. Assuming you have a good hash implementation, that should be true only for a small number of entries, where you need to determine "small" by measuring.
[ Parent
| on HN ]
I think it's about locality and quickness of compare.
So if you have a small data structure and/or large cache, and the key is not complicated.