Repository navigation
Open
Description
- Owner: @mahis1067 ·
minigit/objects.py,tests/test_objects.py - Docs:
docs/packfiles.md, storage results indocs/performance.md - Depends on: Week 6 - M1: Object-store fixes for push/pull round-trips #38, Week 7 - M1: Finalize packfiles + storage performance baseline #44; use the shared benchmark from Week 7 - M4: Network diagnostics + end-to-end performance baseline #47
- Branch from updated
main:feat/storage-performance-finalization - Week 8 completes the Weeks 7-8 optimization and polish phase. Finish the linked prerequisites before implementation; these tickets do not assume the Week 6 or Week 7 PRs have merged.
- Keep object APIs, hashes, on-disk formats, and module ownership compatible
Current checkpoint (2026-11-18)
- Landed: Bound pack-index caching and verify replacement detection #71 bounds parsed-index caching to 64 entries, checks inode/size/mtime, adds eviction and same-metadata replacement regressions, and reconciles storage/performance docs. The revised PR passed lint, formatting, and 445 tests;
docs/performance.mdrecords a sequential cached/uncached run with the exact production revision and environment. - Remaining: run the storage contribution on Week 7 - M4: Network diagnostics + end-to-end performance baseline #47's shared project fixture and confirm packed-only/mixed behavior in Week 8 - M4: Network performance + final end-to-end checkpoint #58's final integrated checkpoint. The existing 512-blob fixture is storage evidence, not a completed network/project benchmark.
- Keep the remaining shared acceptance visible here; do not repeat the completed cache implementation or treat
--no-cacheas an exact historical revision.
Steps
- Reproduce the Week 7 storage baseline and review its remaining findings. Select a bounded storage bottleneck backed by measurements; if none warrants a change, document that result and finish the validation/documentation work.
- Profile loose, packed-only, and mixed reads on the shared fixture, including multiple packs and shared objects. Separate fresh-store/process results from repeated reads; record packing time and retained loose bytes separately from pack/index bytes.
- Reduce measured repeated lookup, parsing, or decompression work without weakening validation. If adding a cache, keep it bounded and define how existing store instances discover newly published packs and detect changed/corrupt backing files.
- Preserve loose-first lookup, exact object bytes/types/hashes, and missing-versus-corrupt exceptions. A corrupt loose object must not silently fall back to a valid packed copy; duplicate writes must still validate existing objects.
- Recheck atomic object writes and pack-before-index publication after any optimization. Failed publication must leave earlier objects readable and clean temporary files; unpublished packs must not become visible to readers.
- Add focused regressions for each changed path and contribute packed-only/mixed-store cases to M4's Week 8 integration checkpoint. M1 continues to own all object-file access.
- Record before/after results using the same fixture, commands, environment, and revision IDs in
docs/performance.md. Explain the tradeoff and remaining limitations; do not claim an improvement without measurements. - Make
docs/packfiles.mdmatch the final behavior and entry points. Keep pruning, garbage collection, delta compression, and format redesign outside this issue. - Run
scripts/quality-check.sh; open a linked PR with the measurements and request teammate review.
Tests
- Fresh and reused stores read identical blobs, nested trees, and two-parent commits from loose, packed-only, and mixed storage
- Multiple/overlapping packs, duplicate writes, newly published packs, and empty/binary/Unicode payloads
- Missing object, corrupt loose/packed bytes or index, truncated publication, and failed writes retain the established errors and previous readable state
- Any cache still detects corruption and new packs; correctness assertions stay in CI and wall-clock benchmarks remain opt-in
Done when
- Week 7 storage findings are resolved or documented with evidence and a follow-up
- Any optimization has reproducible before/after measurements and regression coverage
- Hash, validation, and publication guarantees hold in the final integration workflow
- Packfile docs and storage performance results describe the delivered behavior
- Quality check green; PR open; review requested
Activity