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

Re: [msysGit] Re: [Tortoisehg-discuss] Bazzar stratgy regarding shell extension

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Mon, 21 Apr 2008 23:11:09 +0100

> 1) Let the OS decide when you need to hit swap, and page out the cache
> to disk. I would argue that if the TSVN caching process needs to be
> swapped to disk, it should instead just discard the data. After all, it
> is just going to go back to disk to recompute the information, which
> probably isn't a whole lot slower than paging in its cache files.

Are you serious? If recreating the cache is as fast as reading a page
file, why do you think people have spent hundreds or even thousands of
hours writing and debugging it. It would be *so* much easier to advise
users to add more memory to reduce the number of page faults.

The whole point of a cache is that collecting the information held in
it is a very expensive process. Swap files are generally held as a
linear space on disk (unless you created one from a fragmented area)
so paging, although much slower than keeping everything in memory, is
a *lot* faster than recreating that information from scratch.

Throwing away information to prevent the OS from paging is just insane
and will make caching pointless.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: dev-help_at_tortoisesvn.tigris.org
Received on 2008-04-22 08:24:19 CEST

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.