#hashing #seed #reduce #hash-map #map

seedable_hash

The library for calculating seedable hashes and fast reduction of their ranges

9 releases

new 0.2.1 Apr 24, 2025
0.2.0 Apr 23, 2025
0.1.7 Apr 12, 2025
0.1.6 Feb 16, 2025
0.1.1 Oct 22, 2024

#1079 in Algorithms

Download history 2828/week @ 2025-01-05 2667/week @ 2025-01-12 2910/week @ 2025-01-19 2979/week @ 2025-01-26 2892/week @ 2025-02-02 3208/week @ 2025-02-09 3105/week @ 2025-02-16 2087/week @ 2025-02-23 2449/week @ 2025-03-02 2991/week @ 2025-03-09 2997/week @ 2025-03-16 2527/week @ 2025-03-23 3278/week @ 2025-03-30 3207/week @ 2025-04-06 3013/week @ 2025-04-13 3462/week @ 2025-04-20

13,102 downloads per month
Used in 10 crates (2 directly)

MIT/Apache

11KB
121 lines

seedable_hash is the Rust library (by Piotr Beling) for calculating seedable hashes and fast reduction of their ranges.

seedable_hash conditionally supports hash functions from many crates:

  • GxHash - enabled by gxhash feature,
  • wyhash - enabled by (default) wyhash feature,
  • xxh3 - enabled by xxhash-rust feature,
  • rapidhash - enabled by rapidhash feature,
  • Sip13 using unstable standard library feature hashmap_internals - enabled by sip13 feature,
  • Fowler–Noll–Vo - enabled by fnv feature,
  • standard hash_map::DefaultHasher via Seedable wrapper - always enabled,
  • and others via Seedable wrapper.

BuildDefaultSeededHasher is an alias to the fastest of the enabled methods, selected according to the order of the above list.

We recommend GxHash (gxhash feature) on the platforms it supports.

For hashing integers, we recommend Fx Hash wrapped by Seedable.

Dependencies

~125KB