Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jedisct1/rust-jumphash
- Owner: jedisct1
- License: isc
- Created: 2016-11-29T00:20:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-04-16T23:57:51.000Z (9 months ago)
- Last Synced: 2024-10-17T14:26:45.011Z (3 months ago)
- Topics: consistent, hash, hashing, jumphash, rust
- Language: Rust
- Size: 15.6 KB
- Stars: 15
- Watchers: 6
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```