Dynamic hash tables
Dynamic hash tables
Posted Sep 26, 2014 19:55 UTC (Fri) by perlwolf (guest, #46060)In reply to: Dynamic hash tables by Wol
Parent article: Relativistic hash tables, part 1: Algorithms
The cost is more significant where it is some random buckets that have been split rather than having a clean break between the unsplit and the split buckets. There, you have to take the linked list pointer and add a flag to determine whether it is really pointing to a linked list or if it is actually a link to a split bucket structure. So, the code has a boolean test before traversing the list for an unsplit bucket, or before the logic to process the lower level split in some way, eventually getting down (perhaps) to a linked list to traverse.
