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

Re: Beginnings of python script for annotate

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-08-13 19:38:14 CEST

Daniel Berlin <dberlin@dberlin.org> writes:
> Does all that one needs, except that it's slow.
> The reason it's slow is because it uses python's difflib to do the diffs
> (I verified this is the large part of the current slowness.
> On gdb's dwarf2read.c, where we have a few revisions (8, i think) of the
> actual file, and 700 revisions of the repository (that's all i felt like
> importing),not doing the diffs takes 3 seconds, doing them takes 20

Python's difflib re-implements diff, instead of driving a diff
subprocess. Maybe these numbers would be somewhat better if we were
calling out to a subprocess, though Greg points out that the degree of
improvement would be system-dependent.

You know what I'm thinking? This might be best solved with C program
that uses Sander's internal diff library...


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 13 19:55:10 2002

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.