@mrawdon/hll-native
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

#Another Native Bloom Filter Wrapper Wraps the libbf and libbloom libraries

//1st argument is error rate second arg is expected # items
const filter = new bff(0.001, 100000);
console.log(filter.lookup("a"))//false
filter.add("a");
console.log(filter.lookup("a"))//true

Notes

Currently libbloom is enabled to swap implementations uncomment line 3 of bloom-napi.h The error rate may need to be flipped when swapping implementations libbf has a max_obj_size currently defined at 36

Package Sidebar

Install

npm i @mrawdon/hll-native

Weekly Downloads

3

Version

0.1.4

License

none

Unpacked Size

1.83 MB

Total Files

32

Last publish

Collaborators

  • mrawdon