3 ms·
One approach is to use a hash table where each entry has a block of values, not a linear list. The entire block is always tested linearly, even though most of
by Animats 12y ago
One approach is to use a hash table where each entry has a block of values, not a linear list. The entire block is always tested linearly, even though most of the values are null. Block overflow means an expensive operation to increase the size of the hash table or the blocks, but that's an insertion-time issue, not a lookup-time one.
There's still the problem of cache noise.