Search code examples
windowsgitgit-submodules

msysgit 'submodule update' is excessively slow in windows 7


I have 5 submodules and a git submodule update takes 6-8 seconds. The same git submodule update command on the same repo in ubuntu 13.10 takes 0.4 seconds.

In order to resolve this, I've tried everything listed in these two questions:

Msysgit bash is horrendously slow in Windows 7
Git/Bash is extremely slow in Windows 7 x64

I've performed the following:

  • Fresh windows x64 install using virtualbox with plenty of memory and 4 cores
  • Install msysgit in c:\git\
  • Disable UAC by turning off the luafv driver in the registry and setting UAC to 'never'
  • Run git bash as administrator
  • $HOME variable is on the C: drive
  • export PS1='$' in git bash
  • git config --global core.preloadindex true
  • git config --global core.fscache true
  • git config --global gc.auto 256
  • No antivirus installed

I'm out of ideas and figured I'd ask if anyone has had this same issue, specifically with submodule updates. Git performance otherwise is acceptable when implementing the above list of changes. I'm beginning to think the implementation of the git command in windows is actually at fault.


Solution

  • The culprit was McAfee virus scanner. Only took me 2.5 years to figure it out. In troubleshooting a different issue, our IT team removed it entirely (I'm amazed they actually did this) and I took the opportunity to test this out. Submodule updates are 4x faster and compiling is 2x faster.