Re:What's new in CPUs since the 80s and how does it affect p...
by sklogic on Monday August 24, 2015 @05:24AM
(#10108683)
Would you really prefer to be asked to write a cache-friendly hash map on a whiteboard?
[ Parent
| on HN ]
Re:What's new in CPUs since the 80s and how does it affect p...
by fiatmoney on Monday August 24, 2015 @11:05AM
(#10110309)
It's not really that hard. Open addressing + linear probing + magic value for deletions is something you can implement in 15 minutes if you know how hashmaps work.
Of course "cache friendly" is relative; any hashmap has pseudorandom memory accesses as a core part of its design so again, array scans will beat it below a certain number of elements.