Crates.io | lupine |
lib.rs | lupine |
version | 0.3.2 |
source | src |
created_at | 2021-10-18 03:39:29.732247 |
updated_at | 2021-10-18 21:54:19.380873 |
description | A bloom filter using FX Hash with Kirsch and Mitzenmacher optimization. |
homepage | |
repository | https://github.com/greglaurent/lupine.git |
max_upload_size | |
id | 466531 |
size | 22,603 |
A Bloom Filter using Kirsch and Mitzenmacher optimization with two hash functions.
Hash: Fx Hash
use lupine::BloomFilter;
fn main() {
let mut filter = BloomFilter::new(1_000, 0.001);
filter.insert(&897);
let contains = filter.contains(&897);
let does_not_contain = filter.contains(&100);
}
Licensed under either of Apache License, Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Serde by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.