Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 668 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 668 Bytes

zoomies-rs

Blazingly fast bloom filter implementation written in Rust + N-API bindings.

Querying the filter takes ~0.25µs whilst inserting taked ~0.26µs. This is ~45x faster than the bloom-filter package.

Installation

npm install @kodeythomas/zoomies-rs

Usage

const { Zoomies } = require('@kodeythomas/zoomies-rs');

const filter = new Zoomies(1000, 0.01);

filter.insertAddress('0x01');
filter.insertAddress('0x02');

filter.queryAddress('0x01'); // true
filter.queryAddress('0x02'); // true

filter.queryAddress('0x03'); // false

Benchmarks

Benchmark Results