[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: Blair Zajac <blair_at_orcaware.com>
Date: 2002-08-13 19:37:05 CEST

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?

Best,
Blair

-- 
Blair Zajac <blair@orcaware.com>
Web and OS performance plots - http://www.orcaware.com/orca/
---------------------------------------------------------------------
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:37:39 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.