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

Re: Feature request: new svn_delta_action zero_bytes

From: Branko Čibej <brane_at_xbc.nu>
Date: 2006-03-02 04:40:25 CET

Ph. Marek wrote:
> Hello everybody,
>
> I have a feature request: I'd like to have a new enum svn_delta_action named
> zero_bytes or something similar, which could be used eg. for sparse files, to
> save time and bandwidth.
>
> Is that a bad idea, or shall I create an issue?
>
Did you actually see a significant performance problem?

If you have a (new) range of zeroes in the target stream, the delta for
it should look like this:

    new-data "\0"
    target-copy -1 <length of range -1>

You'd get two instructions instead the ideal one, but the zeroed range
is still run-length encoded in practice.

I fail to see what that has to do with sparse files, though. Are you
implying that Subversion should create sparse files on the client if
they're supported? If so, that's entirely independent of the deltas.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 2 04:40:38 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.