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

Re: [TSVN] TSVNCacheWindow shutdown problem

From: SteveKing <stefankueng_at_gmail.com>
Date: 2005-06-23 11:51:52 CEST

On 6/23/05, Will Dean <svn@indcomp.co.uk> wrote:
> At 10:21 23/06/2005 +0100, you wrote:
>
> >I there a way to turn off saving the cache to disk at shutdown. That
> >would just mean the cache got rebuilt on next use, right?
>
> Having just glanced at the cache saving code, I imagine that it's hideously
> slow, as it appears to do a bazillion tiny writes using WriteFile.

And why would that be slow? Ok, sure, it slower than writing one big
chunk. But there's a write cache on harddrives...

> I think the cache is generally a few MB of RAM, which ought to take much
> less than a second to put down onto disk on a modern machine.

When I timed it yesterday, it took 0.7 seconds to save (in debug
mode), and the cache had all the data of TSVN, Subversion, Apache and
some other working copies in it.

> I guess I need to do some work on the cache again - it's very unfair of me
> to repeatedly pop-up only to criticise Stefan's work and then disappear again.

Well, after you stopped contributing (code, not comments) for more
than three weeks and left me with a non-working code part to fix
alone, I simply ignored your comments.

> Personally, I've always been sceptical about the benefits of saving the
> cache to disk, but there's no reason why it shouldn't work, nor should it
> be slow.

It's a *huge* benefit! Each morning when I start up my computer here
in the office, I don't have to wait for the cache to crawl my 14
working copies. The overlay's are there immediately. So starting
explorer, browsing to the folder where I have my working copies and
showing all the working copies now takes about 3 seconds.
Before (without saving the cache) it took 2 seconds to browse to that
folder, and then 30 seconds just to *show* that folder.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jun 23 11:52:26 2005

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

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