git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git diff is slow (--patience is fast)
@ 2011-08-09  7:51 Marat Radchenko
  2011-08-09 10:49 ` Tay Ray Chuan
  2011-08-16  3:11 ` [PATCH] xdiff/xprepare: improve O(n*m) performance in xdl_cleanup_records() Tay Ray Chuan
  0 siblings, 2 replies; 16+ messages in thread
From: Marat Radchenko @ 2011-08-09  7:51 UTC (permalink / raw)
  To: git

Warning, downloaded files are 7.5Mb each.

~ $ git --version
git version 1.7.6
~ $ mkdir tmp
~ $ cd tmp
~/tmp $ git init
Initialized empty Git repository in /home/marat/tmp/.git/
~/tmp $ wget http://slonopotamus.org/git-diff/foo 2> /dev/null 
~/tmp $ git add -A
~/tmp $ git commit -am "initial"
[master (root-commit) 6b68e83] initial
 1 files changed, 410461 insertions(+), 0 deletions(-)
 create mode 100644 foo
~/tmp $ wget http://slonopotamus.org/git-diff/foo2 -O foo 2> /dev/null 
~/tmp $ time git diff > /dev/null 

real    0m6.513s
user    0m6.490s
sys     0m0.020s
~/tmp $ time git diff --patience > /dev/null 

real    0m0.237s
user    0m0.180s
sys     0m0.050s

Could something be done to `git diff` speed? I would be happy with patience 
diff, but other git commands call standard diff algorithm internally without 
giving an option to choose patience.

gprof output against git master:
http://slonopotamus.org/git-diff/gmon.txt

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-08-27  8:50 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-09  7:51 git diff is slow (--patience is fast) Marat Radchenko
2011-08-09 10:49 ` Tay Ray Chuan
2011-08-09 11:39   ` Marat Radchenko
2011-08-16  3:01     ` Tay Ray Chuan
2011-08-16  3:11 ` [PATCH] xdiff/xprepare: improve O(n*m) performance in xdl_cleanup_records() Tay Ray Chuan
2011-08-16  3:37   ` Tay Ray Chuan
2011-08-16 17:39     ` Junio C Hamano
2011-08-17  1:53       ` [PATCH v2] " Tay Ray Chuan
2011-08-17  5:21         ` Jeff King
2011-08-17 15:55           ` Tay Ray Chuan
2011-08-18 22:44             ` Jeff King
2011-08-19 17:12               ` Tay Ray Chuan
2011-08-21  9:24                 ` Johannes Sixt
2011-08-24  6:29         ` Marat Radchenko
2011-08-24  6:32           ` Marat Radchenko
2011-08-27  8:50         ` Marat Radchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).