[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn diff optimization to make blame faster?

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 24 Aug 2010 10:11:56 +0100

Johan Corveleyn <jcorvel_at_gmail.com> writes:

> Ok, thanks. In the meantime I saw that there is not that much
> difference anymore between GNU diff and svn_diff, after running the
> latter from a release build, and disabling my anti-virus (which makes
> me wonder why my anti-virus slows down svn_diff (impact when opening
> the modified datasource), but not on GNU diff).

The big difference between Subversion's diff and GNU diff is that GNU
uses heuristics to cut short the diff algorithm whereas Subversion
grinds on to the end. Certain files trigger the heuristics and then
GNU diff is much faster than Subversion. Typically the file has a
large number of matches and non-matches repeated through the file,
machine generated files sometimes fit this pattern.

GNU diff's heuristics work well so when they trigger the resulting
diff is usually good enough. They can be disabled using the --minimal
option and using that makes GNU diff performance much more like
Subversion.

-- 
Philip
Received on 2010-08-24 11:12:42 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.