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 2013/02/14 11:33:01 UTC

svn commit: r1446105 - /subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/caching.c

Author: stefan2
Date: Thu Feb 14 10:33:01 2013
New Revision: 1446105

URL: http://svn.apache.org/r1446105
Log:
On the fsfs-format7 branch:  Increase the cache retention rate of key data
structures by raising their priority.  These are noderevs and manifests
(used by pre-format7 only).  Because packed revprops are relatively expensive
to read, try to keep them in cache as well.

* subversion/libsvn_fs_fs/caching.c
  (svn_fs_fs__initialize_caches): bump prio for manifests, noderevs, revprops

Modified:
    subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/caching.c

Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/caching.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/caching.c?rev=1446105&r1=1446104&r2=1446105&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/caching.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/caching.c Thu Feb 14 10:33:01 2013
@@ -384,7 +384,7 @@ svn_fs_fs__initialize_caches(svn_fs_t *f
                        sizeof(svn_revnum_t),
                        apr_pstrcat(pool, prefix, "PACK-MANIFEST",
                                    (char *)NULL),
-                       0,
+                       SVN_CACHE__MEMBUFFER_HIGH_PRIORITY,
                        fs,
                        no_handler,
                        fs->pool));
@@ -398,7 +398,7 @@ svn_fs_fs__initialize_caches(svn_fs_t *f
                        svn_fs_fs__deserialize_node_revision,
                        sizeof(pair_cache_key_t),
                        apr_pstrcat(pool, prefix, "NODEREVS", (char *)NULL),
-                       0,
+                       SVN_CACHE__MEMBUFFER_HIGH_PRIORITY,
                        fs,
                        no_handler,
                        fs->pool));
@@ -509,7 +509,7 @@ svn_fs_fs__initialize_caches(svn_fs_t *f
                            sizeof(pair_cache_key_t),
                            apr_pstrcat(pool, prefix, "REVPROP",
                                        (char *)NULL),
-                           0,
+                           SVN_CACHE__MEMBUFFER_HIGH_PRIORITY,
                            fs,
                            no_handler,
                            fs->pool));