Gate (2): measure the real scan path, price every entry, project the sweep

↗ view on GitHub · Eli Ziff · 2026-07-29 · eff4f79b

perf_gate.py runs sweep.scan_doc itself over a seeded reservoir sample
(143 cases + 108 laws): 0.54 MB/s/core cases, 0.62 laws, cascade only
38 ms/MB. Projection from parquet counts: cases 330,518 doc-lang rows
~1.7 h at 4 BelowNormal workers (~1.1 h at 6), laws ~0.1 h. Top costs
are grammar entries, not structure: ref.note-reference 213 ms/MB,
cite.statute.toa 178, signal.aggressive 137 (signal vocab is
ubiquitous, so prefilter headroom there is limited).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012AgUm5EcRKbT3duVFMbrQD
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents a17781a3
Stats 1 file changed , +201
Part of Deterministic legal-text tools ("SLA audit organs")

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-eff4f79b.md from inside the repo you want the change in.

⬇ Download capture-commit-eff4f79b.md