8 comments

[ 5.2 ms ] story [ 33.2 ms ] thread
The introductory comments are an excellent read about the pragmatics of good hash table design. It would have been really helpful a couple of decades back when I was routinely implementing custom hash tables. OTOH tuning the probe parameters for a table was always an entertaining way to spend an afternoon. Generating a perfect hash for an evolving keyword table was too cumbersome, but trying to reach nearly every symbol in a dense table with a single probe was good sport.
iirc isn't there a chapter in Beautiful Code about this? http://oreilly.com/catalog/9780596510046