[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: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2002-08-13 19:38:30 CEST

On Tue, 13 Aug 2002, Blair Zajac wrote:

> Daniel Berlin wrote:
> >
> > 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
> >
> > I also couldn't remember how to get the oldest revision of a file.
> > It does two things that probably make up the majority of the 3 seconds:
> > 1. It walks each revision from 1, checking when the path starts to exist,
> > to get the oldest revision.
> > 2. It uses fs_file_contents_changed to determine if the contents changed
> > from one revision to another.
> > This is faster than using python diff to do it.
> Does it handle renames of the file?
It's just an example.
To determine how fast/slow diffing fulltexts is.
But handling renames shouldn't be that tricky, that's a gathering phase
thing, and shouldn't be but a few more lines of python.

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:39:02 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.