Overview
| Artifact ID: | 6e1fc038501518d0af3d89ec05b42c3b3afd3a857df6533161079ac42c976b15 |
|---|---|
| Ticket: | f16b31e0b602dd8ff89fa1c619f086c2e0c02e6b
Full reindex takes hours; a direct frames-to-fold path should make it minutes |
| User & Date: | tmp-ops on 2026-08-20 20:49:24 |
Changes
- Untracked field cmimetype: "text/x-markdown"
- comment changed to:
fossil rebuilds the tcl repository in about a minute, in-process. Our full replay of the same data takes hours: zit frames streams every census byte through a subprocess, artifacts are JSON-wrapped and persisted through JetStream, the consumer pulls 256 messages at a time, and each batch pays FTS, ticket-doc, contributor and filechange refresh work. The event bus exists for INCREMENTAL multi-node sync (0001 section 4). A local rebuild is pure derivation and does not need the bus: Reindex can read `zit frames` directly into Fold — parse, batch, fold, then set the publisher cursor to the stream end so incremental sync resumes normally. Same artifacts, same idempotent folds, no serialization/persistence round-trip, no 1GiB/1hr live-tail loss window. Target invariant: a full reindex of the largest store completes in minutes, not hours. Measured floor to beat: fossil rebuild of tcl about 60s; zit ls --no-cache (full manifest materialization) 23s. Related: the per-batch refreshTicketDoc/refreshContributor work is quadratic-ish over a bulk replay and could be deferred to a single pass at round end during rebuild.
- status changed to: "Open"
- title changed to:
Full reindex takes hours; a direct frames-to-fold path should make it minutes