gabriel / muse public
perf patch dev
AI Agent gabriel · 30 days ago · May 11, 2026 · Diff

perf: eliminate redundant snapshot reads on bundle push path

walk_commits now caches snapshot_deltas in _WalkResult. build_mpack_from_walk reuses that cache instead of calling _build_snapshot_deltas a second time. build_mpack delegates to walk_commits internally (one pass). push.py bundle path calls build_mpack_from_walk(root, commit_walk) instead of build_mpack — the walk result computed at step 1 is reused through the entire bundle path with zero additional disk reads.

collect_object_ids_from_deltas extracts object IDs from the pre-computed delta list (pure in-memory, < 10ms for 1031 commits × 700 files).

sha256:f9281f8bbe5bc489ac017940a33b244ca36c7f35d4e76e740f6820627a9d173a sha
sha256:d17db889f8e73e367e4dc96ecef1d82c43f77178ca55a4d19b311fb41d953385 snapshot
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:f9281f8bbe5bc489ac017940a33b244ca36c7f35d4e76e740f6820627a9d173a --body "your comment"