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

Re: performance enhancement by working copy svn server

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: Sun, 20 Apr 2008 12:17:07 -0400

On Sat, 2008-04-19 at 02:12 -0400, Daniel Berlin wrote:
> >
> > (note: I'm not suggesting this as a specific solution in any way...)
> >
> We already do exactly this :)
>
> (cache stat info in the WC and compare it)

Actually, not quite. There's a way of eliminating
svn_sleep_for_timestamps() in there, at the cost of doing file content
comparisons if the timestamp of .svn/entries (the "index") matches the
timestamp of the file.

To answer eg's mail, no, nothing in there would make the tree scan any
faster than it already is. If a tree-walk and lstat() of every file is
too slow to be tolerable for "svn st", then the three discussed
solutions (svn edit, file server for the working copy, relying on arcane
system-dependent interfaces to track file edits) are the only ways to
achieve acceptable performance.

(A tree-walk and lstat() of every file is probably fast enough on any
size project with a decent filesystem, but not everyone works under
decent filesystems.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-04-20 18:17:27 CEST

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

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