Skip to content
zit Artifact [0f7a852989]
Login

Artifact [0f7a852989]

Artifact 0f7a852989b833a2983d5bd5947f9671f4f86b92db73619f0b9adc814c78eb07:


zit 0.12.0

zit 0.12.0 makes one-shot calls cheaper on large stores: a diff reads only the parts of two trees that differ, log for a path reads one line per tree node, and an open no longer checksums whole cache files.

This release is from trunk. Stores and the wire are unchanged from 0.11.0. Two caches beside each store change format and are rebuilt once; see Compatibility before deploying on a large store.

Faster

Fixed

Compatibility

Stores, check-ins and the sync protocol are unchanged.

The log index and the file-history index in .zit-cache change format. The first command that needs each one rebuilds it from the store, once. On small stores this takes moments. Measured on a 644 MB store with sub-manifests, the first command after upgrading cost:

first command time memory
info 0.24 s 83 MB
cat PATH 6.3 s 245 MB
log PATH 162 s 536 MB

Later calls run at normal speed. The cost grows with the store's history. A server can build the new caches ahead of time on a copy of each store with the new binary (info, cat and log for any path), then move the copy's .zit-cache into place at the switch, as for 0.9.0. Do not let an older zit open a store whose caches are in the new format: it rebuilds its own over them.

A damaged block in either cache is detected when it is read; the cache is rebuilt from the store and the call still gives the right answer. A store whose log cannot be read fails as before, with "repository is corrupt".

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.