PostgreSQL company blog

Use perfect hashing, instead of binary search, for keyword lookup

We've been speculating for a long time that hash-based keyword lookup ought to be faster than binary search, but up to now we hadn't found a suitable tool for generating the hash function. Joerg Sonnenberger provided the inspiration, and sample code, to show us that rolling our own generator wasn't a ridiculous idea…
Points
328
HN comments
111
Submissions
1
Cited by
0 commenters

Databases & DataMath & Algorithms2019

On Hacker News

SubmittedTitle on HNPointsComments
Jan 10, 2019Use perfect hashing, instead of binary search, for keyword lookup by boshomi328111

More from PostgreSQL

All 46 posts →

Related posts from the same era