/hloo

A library for hash distance query lookup

Primary LanguageRust

hloo

hloo (Hash LOOkup) is a library for storing hashes and finding them using distance queries. At its core is the algorithm described in this paper by Google (without the compression part).

This algorithm theoretically achieves O(1) time to search on perfectly uniformly distributed hash data. However, in the real world data is often skewed, and in the worst cases (i.e. huge chunks of hashes are the same value) it will perform on par or slightly worse than a naive full scan of data. Always check the quality of your hashes!

Depending on the problem, other solutions to the distance queriying might be more suitable; for example, HMSearch.