Expand description
Hash function abstraction for consistent hashing
This module provides a trait for hash functions and implementations for various hashing algorithms that can be selected via feature flags.
Structs§
- Murmur3
Hasher - Murmur3 hasher implementation (popular, good distribution)
Traits§
- Consistent
Hasher - Trait for hash functions used in consistent hashing
Type Aliases§
- Default
Hasher - Default hasher type based on feature flags. Since somebody might turn on all the hashes at once, we fall through them in the order optimized for rendezvous hashing performance. Based on comprehensive testing, Murmur3 provides the best balance of speed and distribution quality.