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

Re: Howto prevent svn from storing deltas for binary files

From: Branko Čibej <brane_at_xbc.nu>
Date: 2004-10-07 20:47:57 CEST

Scott Palmer wrote:

> On Oct 7, 2004, at 5:35 AM, Thorsten.Huhn@bahn.de wrote:
>
>> When doing a usuability test with svn I found that a library of about
>> 9 MB
>> increased the repository size by about 24-28 MB.
>> My conclusion is that a library as a result of a compilation might
>> change
>> completely leading to a storage effort for tracing the changes that is
>> higher than original file itself.
>
>
> Sounds like a broken binary-diff algorithm to me.

Subversion will never store a delta if the delta is larger than the
original data, which as you note can concievably happen for certain edge
cases (although I've never seen a single case in real life, even with
compressed files).

The increase of the database size is caused by BDB's page preallocation
scheme and the fact that the database files aren't shrunk when data is
logically removed from the database. If you try several similar commits
one after another, you'll notice that the space overhead remains roughly
constant -- actually close to the total size of the last commit.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Oct 7 20:48:16 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.