From: Tomas Carnecky Date: Sun, 04 Dec 2011 13:54:10 GMT Subject: Re: Debugging git-commit slowness on a large repo Message-ID: <4EDB7B82.8090707@dbservice.com> In-Reply-To: On 12/3/11 12:17 AM, Joshua Redstone wrote: > Hi, > I have a git repo with about 300k commits, 150k files totaling maybe 7GB. > Locally committing a small change - say touching fewer than 300 bytes > across 4 files - consistently takes over one second, which seems kinda > slow. This is using git 1.7.7.4 on a linux 2.6 box. The time does not > improve after doing a git-gc (my .git dir has maybe 250 files after a git > gc). The same size commit on a brand new repo takes< 10ms. Any thoughts > on why committing a small change seems to take a long time on larger repos? > > Fwiw, I also tried doing the same test using libgit2 (via the pygit2 > wrapper), and it was ever slower (about 6 seconds to commit the same small > change). try git commit --no-status