git status takes 30 seconds on Windows 7. Why?

5 messages, 5 authors, 2016-06-15 · open the first message on its own page

git status takes 30 seconds on Windows 7. Why?

From: Jim Kinsman <hidden>
Date: 2016-06-15 22:56:32

git status takes 30 seconds on Windows 7. Here are some stats:
git ls-files | wc -l
27330

git ls-files -o | wc -l
4

$ git diff --name-only | xargs du -chs
68K     update_import_contacts.php
68K     total

What can I do??? This is so slow it is unbearable.
By the way i've done git gc several times and nothing changed.

Re: git status takes 30 seconds on Windows 7. Why?

From: Andreas Ericsson <hidden>
Date: 2016-06-15 22:56:32

On 03/27/2013 05:39 PM, Jim Kinsman wrote:
git status takes 30 seconds on Windows 7. Here are some stats:
git ls-files | wc -l
27330

git ls-files -o | wc -l
4

$ git diff --name-only | xargs du -chs
68K     update_import_contacts.php
68K     total

What can I do??? This is so slow it is unbearable.
By the way i've done git gc several times and nothing changed.
I'm guessing it's the disk that's so slow. I accidentally put a git
repo on a network-mounted drive once. With 20ms round-trip time to
the server, git operations took forever.

Could you try it on a disk you know is local? Preferrably a solid
state drive. If it's still slow there, we know for sure something's
broken inside git. If switching media causes git to become fast,
you'll know it's a hardware problem.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

Re: git status takes 30 seconds on Windows 7. Why?

From: Konstantin Khomoutov <hidden>
Date: 2016-06-15 22:56:32

On Wed, 27 Mar 2013 11:39:31 -0500
Jim Kinsman [off-list ref] wrote:
git status takes 30 seconds on Windows 7. Here are some stats:
[...]
What can I do??? This is so slow it is unbearable.
By the way i've done git gc several times and nothing changed.
You could try some voodoo [1] or experimental caching features [2].

1. http://groups.google.com/group/msysgit/browse_thread/thread/02e3c0e046f07215
2. http://groups.google.com/group/msysgit/browse_thread/thread/7cbfe3ca452650d1/93ce48e3875f7416

Re: git status takes 30 seconds on Windows 7. Why?

From: John Keeping <hidden>
Date: 2016-06-15 22:56:32

On Wed, Mar 27, 2013 at 11:39:31AM -0500, Jim Kinsman wrote:
git status takes 30 seconds on Windows 7. Here are some stats:
git ls-files | wc -l
27330

git ls-files -o | wc -l
4

$ git diff --name-only | xargs du -chs
68K     update_import_contacts.php
68K     total

What can I do??? This is so slow it is unbearable.
By the way i've done git gc several times and nothing changed.
Can you run these commands under "time" so that we can see that it's
definitely the "git ls-files" taking 30 seconds and not something in
$PS1?

Re: git status takes 30 seconds on Windows 7. Why?

From: Duy Nguyen <hidden>
Date: 2016-06-15 22:56:33

On Wed, Mar 27, 2013 at 11:39 PM, Jim Kinsman [off-list ref] wrote:
git status takes 30 seconds on Windows 7. Here are some stats:
git ls-files | wc -l
27330

git ls-files -o | wc -l
4

$ git diff --name-only | xargs du -chs
68K     update_import_contacts.php
68K     total

What can I do??? This is so slow it is unbearable.
By the way i've done git gc several times and nothing changed.
You can try "status -uno" to skip showing untracked files (and may be
do without -uno before commit so you don't miss files). You may also
try core.ignoreStat (but I think it's not very convenient to use)
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help