Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jedisct1/rust-jumphash

Jump Consistent Hash implementation for Rust
https://github.com/jedisct1/rust-jumphash

consistent hash hashing jumphash rust

Last synced: 2 months ago
JSON representation

Jump Consistent Hash implementation for Rust

Awesome Lists containing this project

README

        

# Jump Consistent Hash

[A fast, minimal memory, consistent hash algorithm](https://arxiv.org/pdf/1406.2294.pdf).

[API documentation](https://docs.rs/jumphash)

## Example

Cargo dependencies:

```toml
[dependencies]
jumphash = "~0"
```

Rust code:

```rust
extern crate jumphash;

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