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

Re: git checkout running very slowly (>12s)

From
Jeff King <peff@peff.net>
Date
Jun 21, 2011, 14:34 UTC
Message-ID
<20110621143437.GB18700@sigill.intra.peff.net>
In-Reply-To
<20110621004452.GA3064@sigill.intra.peff.net>
On Mon, Jun 20, 2011 at 08:44:52PM -0400, Jeff King wrote:
Show 7 quoted lines
> > In other words, it appears that an efficient lstat implementation
> > was not the key factor in this problem.  The root cause remains a
> > mystery, but in my case, the solution was to upgrade Git.
> 
> If you can reliably trigger the problem by switching versions and you
> are still curious and want to spend a little more time on it, you may
> be able to bisect the fix to solve the mystery.

I was curious, and your issue was easy to replicate, so I bisected it myself. The fix was:

  commit e53e6b4433f264250c2e586167caf61721b0185c
  Author: Brian Downing <bdowning@lavos.net>
  Date:   Thu Jun 10 21:59:07 2010 -0500
      unpack-trees: Make index lookahead less pessimal
which went into v1.7.1.1.
-Peff
Previous: Jeff KingNext: Andrew Cameron
Message 6 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.