ketama-hash-ring 11.1.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
6
7
pub(crate) const FNV_OFFSET_BASIS: u64 = 0xcbf2_9ce4_8422_2325;
pub(crate) const FNV_PRIME: u64 = 0x0000_0100_0000_01b3;
pub(crate) const JUMP_MULTIPLIER: u64 = 2_862_933_555_777_941_757;
pub(crate) const JUMP_SCALE: f64 = 2_147_483_648.0;
pub(crate) const SPLITMIX_INC: u64 = 0x9e37_79b9_7f4a_7c15;
pub(crate) const SPLITMIX_M1: u64 = 0xbf58_476d_1ce4_e5b9;
pub(crate) const SPLITMIX_M2: u64 = 0x94d0_49bb_1331_11eb;