Overview
| Comment: | Extract the sync 4.1 zlib container codec into one leaf module: the three copies had drifted — logstore and repostate rejected valid containers whose zlib stream decodes to fewer bytes than the declared capacity, stricter than 4.1's output-capacity semantics — so unify on the spec-correct decode and retire the duplication. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
0b8ff7a1f817c6cb1f4d19c0d24b7236 |
| User & Date: | dmestas on 2026-07-16 07:28:24.914 |
| Other Links: | manifest | tags |
Context
|
2026-07-16
| ||
| 09:40 | Add a persisted derivation cache so repo-state verbs skip re-deriving all of history: cache the crosslink inputs keyed on the append-only log's tail and replay them on a hit, cutting a warm 'zit leaves' on a 130k-artifact repo from ~103s to 0.21s with byte-identical output and a full rebuild on any log change or corruption. check-in: e1f401fa0d user: dmestas tags: trunk | |
| 09:28 | Memoize the derived repo view in a disposable .zit-cache sidecar so read-only verbs answer sub-second at fossil scale instead of rescanning the whole log on every invocation. check-in: 08504d5f5d user: dmestas tags: cache | |
| 07:28 | Extract the sync 4.1 zlib container codec into one leaf module: the three copies had drifted — logstore and repostate rejected valid containers whose zlib stream decodes to fewer bytes than the declared capacity, stricter than 4.1's output-capacity semantics — so unify on the spec-correct decode and retire the duplication. check-in: 0b8ff7a1f8 user: dmestas tags: trunk | |
| 07:23 | Extract the §4.1 zlib container codec into one leaf module (src/container.zig) so logstore, repostate, and sync share a single §4.1-capacity-semantics implementation instead of three drifting copies. closed check-in: 0e5cc09150 user: dmestas tags: container | |
| 07:05 | Retain received cfiles verbatim on the clone client: store each artifact's received container or delta as-is after verifying its hash over the reconstructed content, so delta compactness survives clone-of-clone and client disk roughly halves — and reject a lying-named push the server previously accepted. check-in: a5ef5d18c0 user: dmestas tags: trunk | |
Changes
Added src/container.zig version [cef1028531].
Added src/container_test.zig version [a013652b1e].
Modified src/logstore.zig
from [f7b0eff9ac]
to [73e529cb11].
[diff]
Modified src/main.zig
from [b612149f13]
to [20db1e9462].
[diff]
Modified src/repostate.zig
from [c2cd266407]
to [bb6a04c389].
[diff]
Modified src/root.zig
from [b305a74553]
to [eec85a6481].
[diff]
Modified src/serve.zig
from [2819fae8b3]
to [e86c2f1f3b].
[diff]
Modified src/sync.zig
from [6f4333d656]
to [bbf3a20681].
[diff]
Modified src/sync_benchmark.zig
from [ae09cb1675]
to [d6d2ad0cd6].
[diff]
Modified src/sync_fuzz.zig
from [4f0c240b91]
to [3f419ec3e3].
[diff]
Modified src/sync_test.zig
from [f9582f1efc]
to [2772d28b8c].
[diff]
Modified src/transport.zig
from [7832e56058]
to [4652b2ab7f].
[diff]