Skip to content
/ bloom Public

Basic Bloom filter implementation in Rust, more about learning rust than bloom filters

License

Notifications You must be signed in to change notification settings

aywrite/bloom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bloom

A basic implementation of a bloom filter in Rust.

This project is mostly just an excuse to play around in Rust. It does not aim to be an optimal implementation of a bloom filter.

Uses n hash function generated from two FNV hash function with different seeds. Based on the paper "Less Hashing, Same Performance: Building a Better Bloom Filter".

Examples

use bloom::BloomFilter;
let mut bf = BloomFilter::new();
assert_eq!(bf.contains(1), false);
bf.insert(2);
assert_eq!(bf.contains(2), true);

License

Licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

This readme was generated using cargo-readme.

About

Basic Bloom filter implementation in Rust, more about learning rust than bloom filters

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages