Skip to content

Week 8 - M1: Measured storage optimizations + packfile regression checks #55

Open

Description

@aman-a-shah

Current checkpoint (2026-11-18)

Steps

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. Make docs/packfiles.md match the final behavior and entry points. Keep pruning, garbage collection, delta compression, and format redesign outside this issue.
  9. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

module-1week-8

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions