git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git checkout running very slowly (>12s)
@ 2011-06-15 19:30 Andrew Cameron
  2011-06-15 22:46 ` Andreas Ericsson
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Cameron @ 2011-06-15 19:30 UTC (permalink / raw)
  To: git

Some git operations (notably checkouts) are taking a very long time to execute.
Here is a shell session which illustrates the problem.

$ time git branch foo
git branch foo  0.01s user 0.00s system 77% cpu 0.016 total
$ time git checkout foo
Switched to branch 'foo'
git checkout foo  11.73s user 0.18s system 99% cpu 11.937 total
$ time git checkout master
Switched to branch 'master'
git checkout master  11.62s user 0.18s system 99% cpu 11.813 total
$ git count-objects -v
count: 953
size: 527012
in-pack: 153432
packs: 7
size-pack: 1986072
prune-packable: 0
garbage: 0

I tried doing a sparse checkout to eliminate approximately 40,000 files from the 
checkout, and furthermore doing git update-index --skip-worktree on a tree which 
contained about another 16,600 files, but neither had any noticeable effect on 
checkout times.

---
Andrew Cameron

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-21 14:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-15 19:30 git checkout running very slowly (>12s) Andrew Cameron
2011-06-15 22:46 ` Andreas Ericsson
2011-06-15 23:16   ` Andrew Cameron
2011-06-20 20:26     ` Andrew Cameron
2011-06-21  0:44       ` Jeff King
2011-06-21 14:34         ` Jeff King
2011-06-21 14:44           ` Andrew Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).