Segovia v0.4.1 — the auto batch default is now memory-safe.
Highlights
- The default (auto) batch width in
reader.preprocess(...)is capped atmin(logical_threads, 4). Peak resident memory for the default path is now bounded to ~1.2 GB on any machine, instead of scaling to ~3-6 GB on many-core hosts where the previous one-slab-per-thread default could OOM low-RAM machines. Callers passing an explicitbatch >= 1are unaffected. Shipped to bothpip install segoviaandcargo add segovia. (ADR 0018)
Validation
- Full CI green: fmt + clippy + test, plus the wheel matrix across macOS, Ubuntu, and Windows. The footprint model
~0.17 GB x batch + ~0.5 GBwas confirmed file-size-independent at the full 55.8-minute scale (ADR 0017).
Still open
- This is a safety guard, not a tuned throughput optimum; the best auto-default value stays open and a future release may refine it. No new features in this patch (the causal filter mode and parallelized mtscomp decode remain future work).
Full Changelog: v0.4.0...v0.4.1