From: Linus Torvalds Date: Fri, 07 Nov 2008 23:57:23 GMT Subject: Re: absurdly slow git-diff Message-ID: In-Reply-To: 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