Dynamic hash tables
Dynamic hash tables
Posted Sep 25, 2014 16:55 UTC (Thu) by Wol (subscriber, #4433)In reply to: Dynamic hash tables by perlwolf
Parent article: Relativistic hash tables, part 1: Algorithms
Standard stats for Pick are that it splits at 80%, merges at 50%, and 95% of accesses hit on the first attempt.
You need some way of handling overflow whatever you do, - how often do you need to rehash these relativistic tables? - how do you handle it overflowing there?
It's a tradeoff - a relativistic rehash is expensive so you need to waste disk/memory to suppress rehashes. Dynamic hashing makes much more efficient use of disk and memory, and reduces the cost of rehashing at, as you say, slightly uneven bucket filling.
But if you need to cope with buckets overfilling anyway, so what about dynamic hashing having uneven buckets ...
Cheers,
Wol
