Re: absurdly slow git-diff
- From
- Abhijit Menon-Sen <ams@toroid.org>
- Date
- Nov 8, 2008, 04:57 UTC
- Message-ID
- <20081108045742.GA26716@toroid.org>
- In-Reply-To
- <alpine.LFD.2.00.0811071554590.3468@nehalem.linux-foundation.org>
At 2008-11-07 15:57:23 -0800, torvalds@linux-foundation.org wrote:
Show 5 quoted lines
> > > Yeah, similar. Mine is below. There's one less branch in the for > > loops. > > ..and has a comment and made the magic constant be named.
It works fine for me (the time went from 5m17s to 1.8s).
(By the way, my test case is certainly very odd, but it is a real file from my test suite, albeit with the content x'ed away; and the change was to adjust the expected output for all the items. I wasn't looking for bugs. :-)
Thanks for the explanation and the patch.
-- ams