Repository navigation
Conversation
…ory sync packs its store Git packs a repository only past an object count, and plumbing commits (hash-object, commit-tree) never trigger it at all. A memory store that re-commits a 30 MB file every two hours grew to 5.3 GB of loose objects; packed it is 135 MB. git_compact.py compacts losslessly (prune and reflog expiry off, commit counts checked before and after) and lowers gc.auto and gc.autoPackLimit so git's own packing starts sooner. plur_store_sync packs its store once loose objects pass 100 MB (PLUR_SYNC_PACK_LOOSE_MB). Tests seen red first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Git packs a repository only past an object count, and plumbing commits never trigger it. The memory store sync commits with plumbing, so its store grew without bound (5.3 GB loose, 135 MB packed).
git_compact.py: lossless compaction (prune and reflog expiry off, commit counts checked before and after); lowersgc.autoandgc.autoPackLimitso git packs sooner on its own;--if-heavypacks only past a size limit.plur_store_sync.py: packs the store once loose objects pass 100 MB (PLUR_SYNC_PACK_LOOSE_MB). A failure is recorded in the sync state, never fatal.test_git_compact.py(5) and one new case intest_plur_store_sync.py, all seen red first; 19 pass.Already run by hand on every machine; this makes the memory store stay packed.
🤖 Generated with Claude Code