Our organization has about a dozen developers with the same model of computer in their workstation (Dell XPS 15 9570), all running Windows 10. We work from a large-ish git repo (about 60,000 files, 10 GB).
On everyone's computer except mine, running git status
in git bash takes about 300 ms. On my computer it takes about 1600 ms:
$ time git status
...
real 0m1.592s
user 0m0.000s
sys 0m0.015s
I ran winsat disk -drive c
on my computer and compared the results to a few others around me, but there wasn't any significant variance across the results.
Running in Safe Mode brings it down to about 1100 ms. Running as administrator doesn't make a difference. Running in different terminals (cmd
, cmder
) doesn't make a difference. None of us use sparse checkouts. git gc
doesn't make a difference. All of us have the latest updates, firmware, etc. for our machines.
What can I do to bring myself to parity with the other computers? I know I can tweak git status
to only look in certain folders to reduce the time to almost nothing, but I'm looking to find the root cause of the time difference. Is there a specific thing I should be measuring or benchmarking to try narrowing down the cause of my slowdown?
dir /s > nul
orfind -ls > /dev/null
take, out of curiosity? Are you using native Windows Git (msysgit) or Cygwin Git or WSL Git? How large is your.git/index
file? Do you have any differences ingit config -l
from your coworkers? Do you have any smudge/clean filters configured?dir /s > nul
takes 2300 ms. Mygit --version
is2.19.1.windows.1
. My.git/index
is 8.1 MB. I don't have any smudge/clean filters. I'll check for differences ingit config -l
.