Skip to content
zit Check-in [6542332151]
Login

Check-in [6542332151]

Overview
Comment:Create new branch named "zerocache"
Timelines: family | ancestors | descendants | both | zerocache
Files: files | file ages | folders
SHA3-256: 6542332151954daa0ea88f8f32258bac2d57b2f223e3e8c6e84aec8e4f96fa2c
User & Date: dmestas on 2026-07-17 00:54:34.152
Other Links: branch diff | manifest | tags
Context
2026-07-17
01:54
Serve warm reads from a materialized column image instead of re-deriving RepoState, cutting a warm leaves load 178.6us to 2.12us (84x). At cache write, dense integer-addressed columns for the mtime index, leaf image, and symbolic-name table are appended to the versioned .zit-cache; on a fast_read open the freed queries (mtimeOf/isLeaf/isOpenLeaf/leaves/branchOf/resolveName per repostate 7.1/7.4/7.5/8.2) answer from those columns with zero derivation. Load-time span validation range-checks every column, CSR span, and stored id and returns a miss (fall back to derive) on any violation or CRC/layout/log-tail mismatch, so a corrupt or stale image is never a wrong answer. RepoState's public API is unchanged; only leaves opts in, cold verbs keep the derive path. Technique: on-disk zero-parse caching after Richard Feldman's Roc and Andrew Kelley's Zig compiler (common in game engines per Casey Muratori); typed enum(u32) index families after the compact_arena crate. closed check-in: ae242f5563 user: dmestas tags: zerocache
00:54
Create new branch named "zerocache" check-in: 6542332151 user: dmestas tags: zerocache
00:38
Merge warmprobe: land the warm-read timing bench that gates read-path perf work on measured re-derivation share (98% of warm load on althttpd). check-in: 8ccef5b6bd user: dmestas tags: trunk
Changes