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

Re: Improving the performance of libsvn_wc for checkouts/updates/switches

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2004-05-23 01:23:27 CEST

Josh Pieper <jjp@pobox.com> writes:

> Do you see any correctness or data loss concerns with the approach
> other than this?

No, I don't, but I have a variation to propose.

Instead of accumulating the log in a single .svn/tmp/log write a
series of separate log files with distinct, ordered, names. As each
file is written it is moved from .svn/tmp to .svn but not run.
Finally have the code that runs the log file loop over all the log
files and sync the entries file once at the end. Now while writing
multiple log files is probably not quite as efficient as writing a
single log file, it should still be O(N) rather than O(N^2) since the
entries file only gets written once. I'm not quite sure what scheme
one would use to order the log files, perhaps simply choosing suitable
filenames and sorting the apr_dir_read output would do.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 23 01:23:41 2004

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.