Re: absurdly slow git-diff
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Nov 7, 2008, 23:57 UTC
- Message-ID
- <alpine.LFD.2.00.0811071554590.3468@nehalem.linux-foundation.org>
- In-Reply-To
- <alpine.DEB.1.10.0811071547080.8736@alien.or.mcafeemobile.com>
On Fri, 7 Nov 2008, Davide Libenzi wrote:
> > 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.
Junio, the time difference is quite big for Abhijit's admittedly odd test-case:
- Before:
[torvalds@nehalem slow-diff]$ time git diff 1 2 > out.old real 2m19.912s user 2m19.885s sys 0m0.024s
- After:
[torvalds@nehalem slow-diff]$ time ~/git/git diff 1 2 > out
real 0m0.841s user 0m0.816s sys 0m0.024s
with no difference in output.
Linus