Xorfilter

Crates.ioXorfilter
lib.rsXorfilter
version0.2.2
sourcesrc
created_at2019-12-24 00:53:25.427824
updated_at2021-12-14 16:24:53.296498
descriptionNo alloc membership approximation
homepagehttps://crates.io/crates/Xorfilter
repository
max_upload_size
id191931
size62,006
(Xorfilter)

documentation

https://docs.rs/crate/Xorfilter

README

Statically allocated membership approximation

Xorfilter

A no_std, no alloc crate for membership approximation.

Quick Start


const N: usize = 100000;
let mut keys = [0;N];

for i in 0..N {
    keys[i] = i as u64;
}

let x = XorFilter::from(keys);
      
for i in 0..N {
    x.contains(keys[i]);
}

Status

No Docs
- Blocking on generic_const_exprs
No serialization
- Blocking on Serde

Why Xorfilter

Other implementations need alloc for Vec.

Limitations

Xor Filters are not designed to work with duplicate values. [1]

XorFilter could benefit from some features in const generics that are not yet in nightly.

Reference

[1] Xor Filters: Faster and Smaller Than Bloom and Cuckoo Filters, Journal of Experimental Algorithmics.

Commit count: 0

cargo fmt