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

Re: [TSVN] TSVNCache load/save from file feature

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-03-14 19:03:09 CET

Mark Phippard wrote:
> I guess this one is for you Stefan.
>
> I saw in the commit messages a couple of weeks ago that a feature was
> added to TSVNCache to save the cache to a file, and then load back from
> that file on startup. This is supposed to increase performance. It makes
> sense to me as an idea, I am just wondering if it is working. Do you have
> to turn it on or something?

No, it's 'ON' by default.

> I see a TSVNCache folder in my %HOMEDIR%\Application Data folder but I
> never see anything in the folder. I imagine that could be because the
> file is only created at shutdown and is then read and removed again at
> startup. However, the main reason I do not think the feature is working

That's correct. When the cache is shut down (windows
logout/shutdown/whatever) then the whole cache is written to the disk.
On startup, the cached status is read from the disk and then deleted
right away. That way, if e.g. something corrupts the saved cache it
won't be there anymore if the cache crashes as soon as the corrupted
data is used (the reading is done before the actual cache functions are
run).

> is looking at the memory usage of the TSVNCache process. After I have
> worked for a while TSVNCache is usually using 5-10 MB of memory. When I
> first startup, however, it is always using 2 MB, which is what it used to
> use prior to this feature. So my assumption is that the cache is empty at
> startup and not loading anything from a file.

The memory you can see in the process explorer isn't really the memory a
process uses. This is only a 'guess' of those tools. That memory
increases for every dll the process loads, even if it's a system dll
which is shared among processes. I think the increase you see might be
because of this.
But I try to investigate this a little more - maybe there's a memory
leak somewhere.

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 Mon Mar 14 19:04:01 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.