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

Re: Caching text-size in the entries file

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2006-09-26 07:26:27 CEST

On 9/25/06, Erik Huelsmann <ehuels@gmail.com> wrote:
> I started working on a patch to record the size of the (unedited)
> working copy file in the entries file. Using 1 stat() call and this
> value, we can detect whether the working copy file has changed,
> without the need to detranslate.
>
> This change can get us 2 things:
>
> - Gain some independence from mtimes: A file which changed in size
> clearly has changes, even if the mtimes stay the same
> - Gain in performance in case there are translation-influencing
> properties in the game: currently, to establish 'changedness' of the
> wc file, libsvn_wc needs to detranslate it to compare to the
> text-base.
>
> These numbers is what I got from a (rudimentary implemented) patch for
> 'svn status' (in 2 runs):
>
> with keyword props
>
> old new
> run 1 1.8 0.1
> run 2 1.2 0.1
>
>
> without keyword props
>
> old new
> run 1 >0.1 ~0.1
> run 2 >0.1 ~0.1

This was in a working copy with 1000 69kB files which had a small
number of bytes concatenated at the end.

bye,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 26 07:26:43 2006

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.