ketama-hash-ring 11.2.0

Zero-dependency consistent hashing suite implementing Jump Consistent Hash, weighted Ketama virtual-node rings, and Google Maglev O(1) lookup tables.
Documentation
1
2
3
4
5
/// Default prime Maglev lookup table size (`65537` offers < 1% imbalance).
pub const DEFAULT_MAGLEV_TABLE_SIZE: usize = 65_537;

pub(crate) const MAGLEV_SEED_OFFSET: u64 = 0x517c_c1b7_2722_0a95;
pub(crate) const MAGLEV_SEED_SKIP: u64 = 0x9e37_79b9_7f4a_7c15;