How does `git gc`/repack tuning differ for a repo that is mostly large binaries?
AdvancedProductionMonorepos, large files and repository performance
Answer
Delta compression is nearly useless on compressed binaries and burns CPU and memory. Exclude them from delta via .gitattributes (-delta) or set core.bigFileThreshold, reduce pack window and memory limits, and prefer LFS or an external store for them.
*.zip -delta
git config core.bigFileThreshold 50m
More on Monorepos, large files and repository performance
What are the main trade-offs of a monorepo?IntermediateHow do you make CI efficient in a monorepo?AdvancedHow do you onboard developers to a very large repo without a 30-minute clone?IntermediateWhat does Scalar do and when do you recommend it?Advanced`git status` takes 20 seconds in a big working tree. How do you fix it?AdvancedWhen should a team adopt Git LFS and when should it avoid it?Intermediate