Artifacts Associated With Ticket f188f43b7f
Ticket change [9af194b55c] (rid 523) by dmestas on 2026-08-16 19:46:00:
- comment initialized 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 initialized to: "Open"
- title initialized to: "zitcli.Frames buffers the whole census in memory"
- type initialized to: "Performance"
- comment initialized to:
Ticket change [69fc45fd32] (rid 655) by dmestas on 2026-08-17 19:38:52:
- comment changed to:
Landed in 05d01cbb. FramesEach streams each artifact to a callback rather than collecting the census; peak RSS on sqlite's 13.2GB stream measured at 0.48GB. Frames kept as a collecting wrapper for tests and small fixtures.
- resolution changed to: "Fixed"
- status changed to: "Closed"
- comment changed to:
Ticket change [cc9303819a] (rid 857) by dmestas on 2026-08-18 18:40:05:
- Untracked field cmimetype: "text/x-markdown"
Ticket change [0a2b1a4f45] (rid 12436) by zeitgeist on 2026-09-24 00:52:38:
- Untracked field number: "1"