Skip to content
zit Artifact [ab50251620]
Login

Artifact [ab50251620]

Artifact ab50251620004abb85cfd3580d2d6eee57a2f9aeb1c44775658410bee802f1c5:


zit 0.14.16

zit 0.14.16 makes large stores faster to open and smaller to keep: a commit no longer scans the store, the first open of a store without a cache takes about a fifth of the time, zit pack lets delta chains grow as deep as they need to, and the cache beside the store loses its second copy.

This release is from trunk. The wire is unchanged. Read the compatibility note below before going back to an older zit on a store this release has packed or received into.

A commit opens the store once, through its index

Writers used to open the store by scanning every frame. They now open it through the index sidecar, as readers do, and check that the log's tail matches it. A commit opens the store once and reuses that handle when it publishes. A one-file commit on pkgsrc (1.17M artifacts) takes 0.04 s instead of 1.1 s.

The first open of a large store is faster

The first open of a store without a cache, and the end of every clone, derives the caches from the log. That derive now runs on a worker pool (up to eight threads), parses each manifest once, and finds a check-in's parents in the window it already holds. On pkgsrc it takes about 23 s instead of about 110 s. The derived caches are byte-identical to before.

The threaded derive follows Git's threaded index-pack (Nguyễn Thái Ngọc Duy).

Delta chains have no depth cap

zit used to cap a delta chain at 32 links, which forced long histories to store full copies at intervals. Writes and zit pack now choose bases by skip-deltas keyed on the artifact, so chains stay short to read while each artifact can still delta against a near neighbour. Receive keeps deltas as the sender built them up to depth 64, as Fossil does, and re-bases only beyond that. Reads walk a chain in a bounded loop and refuse a cycle.

A packed copy of the quarry repository is 24.8 MB instead of 46.2 MB. zit pack takes somewhat longer.

Skip-deltas follow Subversion's FSFS (Greg Hudson).

The checkpoint is a claim, not a copy

The checkpoint beside the store used to carry a copy of the front of the repo cache. It now records which prefix of the repo cache it covers, a key for that prefix and a checksum: 164 bytes instead of 139.5 MB on pkgsrc. The whole .zit-cache beside pkgsrc is 288 MB instead of 427 MB.

An older checkpoint is ignored and the new form is written the next time zit saves the cache. The idea follows Git's commit-graph (Derrick Stolee).

Compatibility

A store that 0.14.16 packs or receives into may hold delta chains deeper than 32. zit 0.14.15 and earlier refuse to read such a store and report it as corrupt. Do not run an older zit on a store this release has packed or received into. Over the wire nothing changes: older zit clones from and pushes to a 0.14.16 server as before.

Qualification

The release manifest records native qualification against the exact tagged source archive on macOS ARM64, Linux x86-64 and Linux ARM64, using the pinned Zig 0.17.0 toolchain. Publication is gated on unit and end-to-end tests, Git differentials, deterministic simulation, seeded fuzzing, and Fossil interoperability checks on every distributed target.

For the basis of the conformance claim, see the 0.1.0 release notes.