Skip to content

modelflat/hloo

Repository files navigation

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.

About

A library for hash distance query lookup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages