You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2011/04/10 13:54:52 UTC

svn commit: r1090784 - /subversion/trunk/subversion/libsvn_ra/ra_loader.c

Author: stefan2
Date: Sun Apr 10 11:54:51 2011
New Revision: 1090784

URL: http://svn.apache.org/viewvc?rev=1090784&view=rev
Log:
Disable membuffer caching over ra_local. Even for svn blame,
the default settings don't lead to improved performance.
Clients like TSVN may still re-enable the caches if the same
RA session is being used for multiple consecutive operations.

* subversion/libsvn_ra/ra_loader.c
  (svn_ra_initialize): disable membuffer cache

Modified:
    subversion/trunk/subversion/libsvn_ra/ra_loader.c

Modified: subversion/trunk/subversion/libsvn_ra/ra_loader.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra/ra_loader.c?rev=1090784&r1=1090783&r2=1090784&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra/ra_loader.c (original)
+++ subversion/trunk/subversion/libsvn_ra/ra_loader.c Sun Apr 10 11:54:51 2011
@@ -44,6 +44,7 @@
 #include "svn_path.h"
 #include "svn_dso.h"
 #include "svn_config.h"
+#include "svn_fs.h"
 #include "ra_loader.h"
 
 #include "private/svn_ra_private.h"
@@ -249,6 +250,17 @@ check_ra_version(const svn_version_t *ra
 
 svn_error_t *svn_ra_initialize(apr_pool_t *pool)
 {
+  /* Per default, disable large expensive FS caching on the client side.
+   * We can still chose a different size for that cache later in the
+   * startup phase, e.g. after reading config files. If that does not
+   * happen until the first FSFS repository get opened, low initialization
+   * overhead caches will be used for the most time-critical structures.
+   *
+   * This is only relevant for FSFS over ra_local. */
+  svn_fs_cache_config_t settings = *svn_fs_get_cache_config();
+  settings.cache_size = 0x0;
+  svn_fs_set_cache_config(&settings);
+
   return SVN_NO_ERROR;
 }