Skip to content

Speed up the carrier backend and add a reproducible benchmark - #9

Merged
hmirin merged 1 commit into
mainfrom
carrier-performance
Oct 14, 2026
Merged

hmirin merged 1 commit into
mainfrom
carrier-performance

Conversation

@hmirin

@hmirin hmirin commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor
  • Store carrier ciphertext without compression or deltas and read it with
    cat-file --batch.
  • Stage objects into the cache before publishing and avoid materializing
    carrier history in helper checkouts.
  • Advance the verified frontier after the client's own publication, so the
    first tiny push after a large one no longer walks the whole history.
  • Use chacha20poly1305 0.11 with aead-stream, which picks NEON on aarch64
    automatically.
  • Add opt-in helper phase tracing.
  • Add scripts/benchmark-git-backend.sh and scripts/reproduce-benchmark.sh,
    which run the full comparison end to end on macOS and Linux, and record
    the results in docs/benchmarks.md.

Part of the split of #2; stacked on explicit-recovery.

@hmirin
hmirin force-pushed the carrier-performance branch from eb75001 to 2c5f25a Compare October 14, 2026 05:30
@hmirin
hmirin force-pushed the explicit-recovery branch from 4e1d168 to 24384b6 Compare October 14, 2026 05:30
- Store carrier ciphertext without compression or deltas and read it with
  `cat-file --batch`.
- Stage objects into the cache before publishing and avoid materializing
  carrier history in helper checkouts.
- Advance the verified frontier after the client's own publication, so the
  first tiny push after a large one no longer walks the whole history.
- Use chacha20poly1305 0.11 with aead-stream, which picks NEON on aarch64
  automatically.
- Add opt-in helper phase tracing.
- Add scripts/benchmark-git-backend.sh and scripts/reproduce-benchmark.sh,
  which run the full comparison end to end on macOS and Linux, and record
  the results in docs/benchmarks.md.
@hmirin
hmirin force-pushed the carrier-performance branch from 2c5f25a to 1356a18 Compare October 14, 2026 05:31
@hmirin
hmirin changed the base branch from explicit-recovery to main October 14, 2026 05:34
@hmirin
hmirin merged commit 1356a18 into main Oct 14, 2026
1 check passed
@hmirin
hmirin deleted the carrier-performance branch October 14, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant