A generic hash table
A generic hash table
Posted Aug 9, 2012 23:26 UTC (Thu) by nix (subscriber, #2304)In reply to: A generic hash table by alonz
Parent article: A generic hash table
Ooo. I'd failed to notice cuckoo hashes: very nice (particularly with more than one item: 50% loading is rather cruddy, but 91% is close enough to 100% as makes no odds. Combine that with using three hash functions and you could get it *very* close to 100% for only a small constant slowdown. Downside: you still do need to resize now and then, which is hateful because it breaks active iterators unless you have crazy complexity to deal with that case alone. Yes, you *can* ban modification of hashes being iterated over, but I consider that a bad-quality implementation.)
