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

#1522 in Algorithms

Download history 666/week @ 2024-08-26 402/week @ 2024-09-02 619/week @ 2024-09-09 864/week @ 2024-09-16 671/week @ 2024-09-23 790/week @ 2024-09-30 470/week @ 2024-10-07 379/week @ 2024-10-14 505/week @ 2024-10-21 449/week @ 2024-10-28 230/week @ 2024-11-04 158/week @ 2024-11-11 165/week @ 2024-11-18 164/week @ 2024-11-25 324/week @ 2024-12-02 401/week @ 2024-12-09

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

~375KB