Artifact 2c43b98cc16d1d61f0572381784ef5ecf613b5d5f3f9c47b554411eba9790c31:
- File
src/cmd/landing.zig
-
2026-08-23 22:36:21
— part of check-in
[8776c0e5bb]
on branch landing-scan
— landing: stop parsing every blob to find the records
The fold called artifact.parse on every artifact in the store and let it fail on the content blobs, which are most of a real store's bytes -- and a parse attempt pays a whole-bytes Z checksum before rejecting one. It now applies the reject-fast pre-screen frames --structural already uses, and reuses one plaintext buffer instead of allocating per artifact.
zit landing ls, release build: quarry 1.06s -> 0.15s, zit 2.19s -> 0.31s, libfossil 8.49s -> 0.91s. A forum-shaped store is unchanged, because there is nothing to reject there; it was never the slow case.
The screen only rejects. Every accept still takes the full parse, so nothing the fold would refuse can be admitted by being shaped like a card. (user: dmestas, size: 62104) [annotate] [blame] [check-ins using]
- 2026-08-23 22:46:25 — part of check-in [0ef543c27a] on branch trunk — merge landing-scan: the fold stops parsing every blob (user: dmestas, size: 62104) [annotate] [blame] [check-ins using]
-
2026-08-23 22:36:21
— part of check-in
[8776c0e5bb]
on branch landing-scan
— landing: stop parsing every blob to find the records