🎯 Pithanos
⚡ Fast, lock-free probabilistic data structures for modern Rust. Includes Bloom Filter and Count-Min Sketch implementations optimized for speed and concurrency.
✨ Features
| Feature | Description |
|---|---|
| 🧩 Bloom Filter | Approximate set membership check |
| 📊 Count-Min Sketch | Approximate frequency estimation |
| ⚙️ No global locks | Thread-safe access with atomic operations, fast deterministic hashing (xxhash) |
| 📦 Modular design | Shared internal traits and utilities, clean module structure |
| 🧪 Benchmark suite | Criterion-based microbenchmarks for queries |
📦 Installation
Add this to your Cargo.toml:
[]
= "0.1"
🚀 Quick Start
Bloom Filter
use BloomFilter;
Count-Min Sketch
use CountMinSketch;
🧪 Benchmarks
Pithanos uses criterion for micro-benchmarks.
Run all benchmarks with cargo bench
💬 Acknowledgments
Pithanos (πιθανός) — Ancient Greek: “likely,” “probable,” or “plausible.”
Inspired by RedisBloom