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