Jump Consistent Hash
A fast, minimal memory, consistent hash algorithm.
Example
Cargo dependencies:
[]
= "~0"
Rust code:
extern crate jumphash;
let jh = new;
let slot_count = 100;
let slot_for_key = jh.slot;
A fast, minimal memory, consistent hash algorithm.
Cargo dependencies:
[dependencies]
jumphash = "~0"
Rust code:
extern crate jumphash;
let jh = jumphash::JumpHasher::new();
let slot_count = 100;
let slot_for_key = jh.slot("key", slot_count);