Repository navigation
Reuse bounded carrier listings during cold fetch - #39
Merged
Merged
Conversation
hmirin
force-pushed
the
codex/e2ee-full-history-perf
branch
from
November 16, 2026 09:02
b8d871b to
c7def8b
Compare
hmirin
changed the base branch from
codex/e2ee-checkpoint-full-check
to
main
November 16, 2026 09:03
hmirin
marked this pull request as ready for review
November 16, 2026 09:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A cold fetch of an encrypted carrier repeatedly lists the same immutable manifest and pack subtrees while checking history. These Git subprocesses add latency as history grows.
Change
scripts/benchmark-cold-fetch.sh, which creates a temporary local carrier, fetches into fresh repositories, checks the resulting ref ID, and runsgit fsck. It clears the carrier-cache override and sums all manifest-authentication spans.This PR is based directly on
mainand does not require #37 or #38. It does not change the carrier format or the fetch interface.Verification
cargo fmt --check,cargo test --all-targets, andcargo clippy --all-targets -- -D warningspassed locally. GitHub CI passed.On sequential release-build runs with 30 generated generations and three fresh fetches per revision, median wall time was 3.623 s on
mainand 3.163 s on this PR (about 13% lower). Median summed manifest-authentication time was 1.930 s and 1.457 s respectively. Each run fetched the expected ref and passedgit fsck. These are small, separate local batches; they do not estimate network-bound performance or peak memory.Claude Opus independently reviewed the diff, checked malformed carrier trees against the original per-object path in a scratch copy, and confirmed that its two benchmark findings were fixed. It found no blocking correctness issue and judged #39 independently mergeable.