Crates.io | jumphash |
lib.rs | jumphash |
version | 0.1.8 |
source | src |
created_at | 2016-11-29 00:26:27.694483 |
updated_at | 2021-11-02 17:33:15.251552 |
description | A Fast, Minimal Memory, Consistent Hash Algorithm |
homepage | https://github.com/jedisct1/rust-jumphash |
repository | https://github.com/jedisct1/rust-jumphash |
max_upload_size | |
id | 7403 |
size | 7,303 |
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);