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

Re: How to find out if I own a lock?

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-04-13 21:30:12 CEST

C. Michael Pilato wrote:
> Steve, is there any way you can quantify the performance hits we're
> talking about? Tweak TSVN to do the property checks, and see how it
> really affects things, ya know?

I don't have to do property checks first to see the performance
degradation. Just compare the following:

To show a versioned folder in explorer, TSVN does one
svn_client_status() call and then caches that data. Explorer asks the
status of each file individually, which TSVN then returns from the
cache. Now, we had that cache time out after about 10 seconds. For big
working copies, that wasn't enough because it took longer to show that
folder in explorer.
Now imagine if I have to ask *every* file for its svn:needs-lock
property - that would mean for each file about three file access calls
(don't know for sure, but I think that API accesses at least the entries
file, checks if the .svn folder is present, ...).
That would at least double the time it takes now for just the
svn_client_status() call! And I think it will take even longer, since
svn_client_status() only has to read the entries file once, not once for
every file.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 13 21:30:59 2005

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