Repository navigation
·
39 commits
to master
since this release
At last: a 2.0 release.
Main changes:
- The defaults in the API are now geared more towards maximum query throughput:
FastPtrHash(2.67 bits/key) omits the remapping and gives a non-minimal PHF.DefaultPtrHash(3.0 bits/key) andFastPtrHashbuild all keys in a single part. This prevents multi-threaded construction, but allows faster queries.CompactPtrHash(2.15 bits/key) uses the cubic bucket function (whereas the 2 above use the linear one), allowing a smaller overall size. This also uses parts based on Sebastiano Vigna's epsilon-cost-sharding formula.
- To facilitate efficient single-part (10M keys or less) instances, the restriction that parts must have power-of-2 number of keys is dropped. We now use
FastMod(two 64-bit multiplications) instead of a mask to extract entropy from the lower bits of the hash. - The readme has been updated with some new performance numbers.
More library changes:
- 32-bit platforms are also supported now.
- some dependencies have been moved behind default-enabled feature flags.
- things now work on stable rust.
See also the changelog.