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

#863 in Algorithms

Download history 825/week @ 2024-07-21 527/week @ 2024-07-28 287/week @ 2024-08-04 528/week @ 2024-08-11 460/week @ 2024-08-18 643/week @ 2024-08-25 425/week @ 2024-09-01 622/week @ 2024-09-08 863/week @ 2024-09-15 632/week @ 2024-09-22 811/week @ 2024-09-29 489/week @ 2024-10-06 371/week @ 2024-10-13 509/week @ 2024-10-20 450/week @ 2024-10-27 225/week @ 2024-11-03

1,563 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