by kodomonocch1 · 10mo ago · 0 comments
What I built (SEE — Semantic Entropy Encoding) A schema-aware, searchable compression codec that keeps `exists` / `pos` lookups in sub-ms while still compressing. Internals: structure-aware delta + dictionaries, a PageDir + mini-index to jump to relevant pages, and a tuned Bloom filter that skips ~99% of pages. AutoPage (131/262 KiB) balances seek vs throughput.
Benchmarks (apples-to-apples on a desktop: i7-13700K/96GB/Windows) • Size ratio: strings ≈ 0.168–0.170; combined ≈ 0.194–0.196 • Bloom density ≈ 0.30; skip: present ≈ 0.99, absent ≈ 0.992 • Lookup latency (ms): present p50/p95/p99 ≈ 0.18/0.28/0.37; absent ≈ 1.16–1.88 / 1.36–2.11 / 1.58–2.41
Why not “just zstd”? On pure size, zstd can win. The point here is searchable compression: Bloom + PageDir means selective probes avoid touching most pages, reducing I/O/egress and wall-clock time. For full scans, zstd alone may be fine.
Try it in 10 minutes (no build) 1) `pip install see_proto` 2) `python samples/quick_demo.py` It prints ratios, skip %, Bloom density, and p50/p95/p99.
Repo / README / one-pager https://github.com/kodomonocch1/see_proto#try-in-10-min
What I’m looking for Feedback on design trade-offs (Bloom density targets, AutoPage sizing, codec selection), failure modes on irregular schemas, and integration ideas with existing JSON stores.
No comments yet.