pingqiuandClaude Opus 5.5 4fdecba380 fix(layout): plan a commit once; the HEAD update's step does constant work
A 1 TiB commit (262,144 chunks) spent 2.47 s inside the 2 s HEAD update
re-deriving the base root and re-scanning the manifests, and its retry did
it again. PlanCommit now computes everything a commit needs from the
request alone (root, segments, base root, the owners of the changed
entries for the foreign-reference check, and the objects to look up)
before the update; the update step only checks the replay, the base, the
owners and writes. CheckCommit plans on the cut's budget and CASHead
reuses that plan and the passed check on every attempt of the same open
session (matched by manifest equality); the check is no longer dropped
before the commit, so a re-proposal after an unknown outcome looks up
nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 20:45:19 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%