News for hackers. Stuff that matters.
Re:15-line hash table in C by syllogism on Friday December 12, 2014 @12:43AM (#8738737)
Let's say you get a collision. Would you rather:

a) Find your correct key within the same cache-line. But, you have to check 4 more values to get there;

b) Find your correct key in the next try...But, you have to jump to another part of the array.

Once you've indexed into the array, you want to read forward from there. You don't want to jump around.

http://preshing.com/20130107/this-hash-table-is-faster-than-...

There are no comments on this comment yet.