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

Re: bug in svn diff and related?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-03-16 05:26:14 CET

On Mar 15, 2005, at 10:15 PM, Travis wrote:
>
> True: I am considering the cost of the extra integer comparison and
> branch to be negligible. If you are decreasing the accuracy of the
> heuristic because of that cost, it seems like an unworthwhile
> micro-optimization to me.

The speedup is noticeable, and affects everyone all the time. Try
switching the algorithm and doing some timing tests to see for
yourself.

The situation you're worried about -- a process that tweaks a
working-file's timestamp into the past -- is incredibly rare. We
simply never hear about it.

So in theory, yes, we're not as accurate as we could be. In practice,
this just doesn't matter. The performance tradeoff is well worth it.
This is based on 5 years of Subversion usage and (?) 15 years of
widespread CVS usage. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 16 05:28:38 2005

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