rust-jumphash
rust-jumphash copied to clipboard
Jump Consistent Hash implementation for Rust
Jump Consistent Hash
A fast, minimal memory, consistent hash algorithm.
Example
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);