cbloom
Version, currently 1.3.04 versions
- 1.3.0latestOct 29, 2022
- 1.2.0not indexedNov 21, 2022
- 1.1.0not indexedNov 21, 2022
- v.1.2.0not indexedNov 21, 2022
github.com/creadone/cbloom
Sharded Bloom Filter
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
cbloom:
github: creadone/cbloom
version: ~> 1.3.0Then run:
shards installshard.yml
- Crystal
1.5.0- License
- MIT
- Author
- creadone
- Target
cbloomfrom src/cbloom.cr
Dependencies
Runtime Dependencies
- nanoid*git: git@github.com:mamantoha/nanoid.cr.git
- bloom_filter*git: git@github.com:willhbr/bloom_filter.git, branch: bytes
README
Cbloom
Sharded Bloom Filter with hash generation for use on my internal project. Cbloom is cluster of 32bit Bloom filters that can be flushed on drive. It work through socket (see /lua/cbloom.lua). Cbloom is needed to quickly generate a large number of unique hashes and nothing else.
Installation
shards install & shards build --release
Usage
Usage: cbloom [arguments]
-d PATH, --directory=PATH Path to directory where bitmaps are stored
-s INT, --shards=INT Number of bloom filter shards
-e FLOAT, --probability=FLOAT Probability of false positives
-i INT, --item=INT Max number of items
-h, --help Show this help
Usage
Run
./bin/cbloom -d ./bitmaps -s 5 -i 1000000 -e 0.01
Call
local cbloom = require('cbloom')
cbloom.setup('/var/run/cbloom.sock')
print(cbloom.get())
Contributors
- creadone - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.3.0- Tagged
- Oct 29, 2022
- Commit
c6b479e48be3- Crystal
1.5.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/creadone/cbloom
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 4