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

Re: Entries Cache Performance

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2002-11-26 17:58:44 CET

On Tue, 2002-11-26 at 11:18, Brandon Ehle wrote:
> On the overall, right now
> sscanf is about 33% of svn's time spent when doing a update on an empty
> working copy. Any ideas on how to speed this up? Two things that come
> to mind is a hand coded replacement for sscanf, or storing the time in
> an alternate format where we don't need to use sscanf to parse it.

Yeah, those are the two basic strategies. First, switch to hand-parsing
the date, which shouldn't be too difficult; if that doesn't cut down the
time spent in svn_time_from_cstring sufficiently, switch to storing
dates in the entries file as decimal apr_time_t values. (Which is less
readable, but simple and fast.)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Nov 26 17:59:35 2002

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.