Git is really slow for 100,000 objects. Any fixes?

后端 未结 11 1704
忘了有多久
忘了有多久 2020-11-27 13:23

I have a \"fresh\" git-svn repo (11.13 GB) that has over a 100,000 objects in it.

I have preformed

git fsck
git gc

on the repo afte

11条回答
  •  一个人的身影
    2020-11-27 13:51

    One longer-term solution is to augment git to cache filesystem status internally.

    Karsten Blees has done so for msysgit, which dramatically improves performance on Windows. In my experiments, his change has taken the time for "git status" from 25 seconds to 1-2 seconds on my Win7 machine running in a VM.

    Karsten's changes: https://github.com/msysgit/git/pull/94

    Discussion of the caching approach: https://groups.google.com/forum/#!topic/msysgit/fL_jykUmUNE/discussion

提交回复
热议问题