8 releases

0.1.8 Nov 2, 2021
0.1.6 Aug 15, 2019
0.1.5 Nov 22, 2018
0.1.3 Jan 24, 2017
0.1.2 Nov 29, 2016

#1250 in Algorithms

Download history 388/week @ 2023-12-18 50/week @ 2023-12-25 298/week @ 2024-01-01 332/week @ 2024-01-08 498/week @ 2024-01-15 482/week @ 2024-01-22 332/week @ 2024-01-29 430/week @ 2024-02-05 302/week @ 2024-02-12 467/week @ 2024-02-19 725/week @ 2024-02-26 372/week @ 2024-03-04 497/week @ 2024-03-11 626/week @ 2024-03-18 393/week @ 2024-03-25 833/week @ 2024-04-01

2,361 downloads per month
Used in 5 crates (3 directly)

ISC license

7KB
95 lines

Jump Consistent Hash

A fast, minimal memory, consistent hash algorithm.

API documentation

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);

lib.rs:

An implementation of the Jump Consistent Hash Algorithm.

Example

extern crate jumphash;

let jh = jumphash::JumpHasher::new();
let slot_count = 100;
let slot_for_key = jh.slot(&"key", slot_count);

Dependencies

~365KB