Overview
| Artifact ID: | 9af194b55cedc8e39f19d35a883828ccb6d99002865c9089f26c53d83e90a2d1 |
|---|---|
| Ticket: | f188f43b7fa5a21ee0f2d95225f944f0a47700a9
zitcli.Frames buffers the whole census in memory |
| User & Date: | dmestas on 2026-08-16 19:46:00 |
Changes
- comment changed to:
Frames parses every artifact a store returns into one []Artifact before ingest publishes any of it. On sqlite that stream is 13.2GB, and quarry holds the parsed form of all 131,558 artifacts at once; tcl is larger. It survives today on a development machine and would not on a pkgsrc-scale store (~1.17M artifacts). This is the memory analogue of the JetStream overrun fixed in 44c86387. That change bounded what sits ON the stream by folding every 64MiB; it did not bound what sits in RAM before publishing, because watch() still receives the entire batch from one Frames call. Fix shape: give Frames a streaming form — a callback or iterator per artifact — so watch() publishes as it parses and never materialises the census. The wire format already supports it (parseFrames reads framed records sequentially); only the API shape forces buffering. Found while benchmarking zit frames: writing two 12GB dumps filled the disk and killed the demo server, which is what drew attention to the size of a single batch.
- status changed to: "Open"
- title changed to: "zitcli.Frames buffers the whole census in memory"
- type changed to: "Performance"