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

Re: Using md5sum for svn status

From: Marcus Rueckert <darix_at_web.de>
Date: 2005-04-27 04:24:21 CEST

On 2005-04-26 21:36:07 -0400, Mark Phippard wrote:
> Your answer seems to assume that once we reach this case that finding
> differences is what we would expect. Is that really the case? If the
> timestamps differ, but the sizes are the same I would expect that more
> often than not something modified the timestamp but the files are still the
> same.
>
> In looking for ways to improve the performance we ought to decide what we
> think the "normal case" will be, even if it is only 51% of the time and
> then try to use the best algorithm for that case.

i checked it. it really does.

subversion/libsvn_subr/io.c
[[[
/* Do a byte-for-byte comparison of FILE1 and FILE2. */
static svn_error_t *
contents_identical_p (svn_boolean_t *identical_p,
                      const char *file1,
                      const char *file2,
                      apr_pool_t *pool)
]]]

so if you consider the idea of storing the md5sum of the WC file. the
question is: what costs more time?
the line-ending/keyword processing or the md5sum.

darix

-- 
irssi - the client of the smart and beautiful people
              http://www.irssi.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 27 04:25:25 2005

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