News for hackers. Stuff that matters.
Re:Use perfect hashing, instead of binary search, for keywor... by nuclx on Thursday January 10, 2019 @08:22PM (#18880224)
It's a reasonable choice for the use-case at hand. I used a similar approach to generate C code using python with jinja2. Ironically, I generated a binary hash based lookup, because the hash values ought to stay constant even when new keys are added in future versions.

There are no comments on this comment yet.