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

Re: [TSVN] Windows explorer slow down

From: SteveKing <stefankueng_at_gmail.com>
Date: 2005-06-22 12:49:40 CEST

On 6/22/05, Simon Large <slarge@slarge.plus.com> wrote:
> >> TSVNCache.exe only runs if you have TSVN 1.2.0, and if you have
> >> recursive overlays enabled.
> >
> > Wrong. If you have TSVN 1.2.0, it always runs, no matter what
> > settings you use.
>
> So it still runs, but it doesn't do any crawling because it is never
> asked for status?

Sure it's asked for status, just not the 'recursive' status! After
all, you still have the overlays working even if you don't have the
recursive option set.

> > Exactly! That's exactly what would happen in the cache isn't running.
>
> Exactly what? Sorry to be slow here, but if you're in a non-WC folder
> creating a new folder, what is there for TSVN to do that takes 100% CPU
> for several seconds?

The shell doesn't know anything about versioned/unversioned. So it
asks if the overlay should be shown for *all* files and folders. The
cache then knows if it's versioned (returns the status) or not
(returns 'unversioned') to our shell extension.

Now, if the cache isn't running, our shell extension tries to start
it. After calling CreateProcess() it wait a little while to give the
cache time to start up. Then it asks for the status and if the cache
still isn't running it assumes 'unversioned'.

Even though the waiting is done without using any CPU time (Sleep()),
during that wait time the explorer is stuck.

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 Wed Jun 22 12:50:02 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.