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

Re: [TSVN] Very long time to crawl WC.

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2005-12-01 16:04:23 CET

On 12/1/05, Peter McNab <mcnab_p@melbpc.org.au> wrote:

> I have another idea for you. (moan heard from a distance, or was that a
> scream?)

You heard my tears flooding my apartment :'(

> It would really be nice if F5 could be left as a tool of last resort.
> So, how about some smarts in the cache.

I already do as much as I really can.

> It's just that F5 does not have the same functionality when a file open
> or close dialog is activated in an application.

What's different there? I never noticed anything different with F5.

> Peter's try 2
> To avoid the refresh delay you mentioned earlier and to avoid multiple
> refreshes then another approach might suffice.
> Notification requiring a refresh part of the cache arrives.
> If the notification is for the same folder as the previous refresh -and-
> within a suitably short space of time then :-
> chances are that this folder is being or is about to be hit with a
> string of changes :-
> so start or restart a timer and delay further refreshes until the timer
> expires. (300ms?)
> else refresh immediately.
> Record the last refreshed folder (which may contain further folders) and
> the current time for later use.

How it's currently done:
* notification arrives
* crawler has path of notification in queue
* crawler starts with the first path in the queue
* crawler fetches status of path
* crawler checks queue for the same path it just crawled
  - if same path is in the queue again, remove it from the queue

So, there already *is* a delay between crawling the same folder - it's
the time it takes to actually crawl the folder (plus some more).

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 Dec 1 16:18:06 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.