Thread (10 messages) flat view 10 messages, 5 authors, 2016-06-15

Re: absurdly slow git-diff

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:45:37


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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help