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

Re: Question about the diff algorithm...

From: John Szakmeister <john_at_szakmeister.net>
Date: 2006-08-27 12:46:47 CEST

----- Ryan Schmidt <subversion-2006c@ryandesign.com> wrote:
> On Aug 26, 2006, at 11:03, Hadmut Danisch wrote:
>
> > Then I have changed the file test only by adding one single line at
> > the end of the file between revision 2 and 3.
> >
> >
> > But then db/revs of the repository looks like that:
> >
> > -rw-r----- 1 hadmut users 115 2006-08-26 10:52 0
> > -rw-r----- 1 hadmut users 375 2006-08-26 10:54 1
> > -rw-r----- 1 hadmut users 1405189 2006-08-26 10:56 2
> > -rw-r----- 1 hadmut users 1405227 2006-08-26 10:57 3
> > -rw-r----- 1 hadmut users 701 2006-08-26 10:58 4
> >
> >
> > Although the large amount of data was added only once, and revisions
> 2
> > and 3 differ only by one line of text, both revision files 2 and 3
> are
> > large.
> >
> > The difference between revisions 3 and 4 is similar to that between
> 2
> > and 3: Just a single line of text added at the end of the file. But
> > now the revision file is small.
> >
> >
> > Why is the revision file 3 big and the revision file 4 small? In
> both
> > cases I just did
> >
> > date >> test
>
> That may be the skip-deltas algorithm at work. When storing in the
> repository, a revision is not always diffed against the immediately
> preceding revision, for performance reasons.
>
> http://svn.collab.net/repos/svn/trunk/notes/skip-deltas

That's exactly what's happening.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Aug 27 12:49:04 2006

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.