Overview
| Comment: | Delta-encode cfiles on clone: store an artifact as a delta against its previous version when materially smaller, and serve that stored delta container verbatim with the reconstructed-size USIZE per sync 7.2, cutting clone reply size 58-87% on version-chained repos while full-form artifacts still serve unchanged. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
d7e16fadb19308238a0ce4f5c1646852 |
| User & Date: | dmestas on 2026-07-16 05:04:14.387 |
| Other Links: | manifest | tags |
Context
|
2026-07-16
| ||
| 06:13 | Speed up repo-state derivation on open: replace the O(N-squared) crosslink scans with parent/child/tag adjacency indexes, verify each frame's whole-frame CRC once at scan instead of twice per verb, and cache delta bases during the derivation sweep — cutting the algorithmic crosslink term over 100x with byte-identical derived state. check-in: baa7053ee1 user: dmestas tags: trunk | |
| 06:00 | Accelerate repo-state derivation on open: replace the quadratic crosslink scans with per-parent/child/rid adjacency indexes, verify each frame's CRC once at open instead of again on every read, and memoize delta bases across the derivation sweep, so the query verbs stay fast on large repositories without changing any derived answer. check-in: 76b0f8f1d0 user: dmestas tags: scale | |
| 05:04 | Delta-encode cfiles on clone: store an artifact as a delta against its previous version when materially smaller, and serve that stored delta container verbatim with the reconstructed-size USIZE per sync 7.2, cutting clone reply size 58-87% on version-chained repos while full-form artifacts still serve unchanged. check-in: d7e16fadb1 user: dmestas tags: trunk | |
| 05:01 | Drop the unused putContainer store method and its two tests: its only intended caller is the deferred client-verbatim persist hook, so it stays dead surface until that lands. closed check-in: 673d5070bb user: dmestas tags: delta | |
| 03:57 | Serve stored cfile containers verbatim on clone: reuse each artifact's already-compressed 4.1 container instead of recompressing it on every clone reply, moving the per-clone compression cost off the serve path to ingest and cutting clone-serve time ~76% with byte-identical wire output. check-in: f4fe62b160 user: dmestas tags: trunk | |
Changes
Modified src/logstore.zig
from [0cdb0dc288]
to [838cef516a].
[diff]
Modified src/logstore_test.zig
from [81a7a05ea6]
to [4e251adf9e].
[diff]
Modified src/main.zig
from [d4472d0b2c]
to [d9ba7d021d].
[diff]
Modified src/repostate.zig
from [4d41a05110]
to [2bc7002a63].
[diff]
Modified src/repostate_test.zig
from [03e4132b06]
to [559a7f2516].
[diff]
Modified src/sync.zig
from [7cdaa4b69e]
to [b9281546d2].
[diff]
Modified src/sync_benchmark.zig
from [8892e159e5]
to [053c44e967].
[diff]