git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git checkout running very slowly (>12s)

From
ACAndrew Cameron <andrew@worksmartlabs.com>
Date
Jun 15, 2011, 19:30 UTC
Message-ID
<loom.20110615T213016-856@post.gmane.org>

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

Next: Andreas Ericsson
Message 1 of 7 in “git checkout running very slowly (>12s)”
  1. Andrew CameronJun 15, 2011
  2. Andreas EricssonJun 15, 2011
  3. Andrew CameronJun 15, 2011
  4. Andrew CameronJun 20, 2011
  5. Jeff KingJun 21, 2011
  6. Jeff KingJun 21, 2011
  7. Andrew CameronJun 21, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.