]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
feat: Enable inode cache by default
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 5 Aug 2022 14:42:16 +0000 (16:42 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 6 Aug 2022 08:28:59 +0000 (10:28 +0200)
See discussion #1086.

doc/MANUAL.adoc
src/Config.hpp
test/suites/inode_cache.bash

index 31e4c148d7255d6a0cdbface42498a19f4be01c9..4027ffad571fb3468114dd593c28c1da5927af8c 100644 (file)
@@ -774,14 +774,13 @@ might be incorrect.
 [#config_inode_cache]
 *inode_cache* (*CCACHE_INODECACHE* or *CCACHE_NOINODECACHE*, see _<<Boolean values>>_ above)::
 
-    If true, enables caching of source file hashes based on device, inode and
-    timestamps. This will reduce the time spent on hashing included files as
-    the result can be resused between compilations.
+    If true, ccache will cache source file hashes based on device, inode and
+    timestamps. This reduces the time spent on hashing include files since the
+    result can be resused between compilations. The default is true. The feature
+    requires <<config_temporary_dir,*temporary_dir*>> to be located on a local
+    filesystem of a supported type.
 +
-The feature is still experimental and thus off by default. It is currently not
-available on Windows.
-+
-The feature requires *temporary_dir* to be located on a local filesystem.
+NOTE: The inode cache feature is currently not available on Windows.
 
 [#config_keep_comments_cpp]
 *keep_comments_cpp* (*CCACHE_COMMENTS* or *CCACHE_NOCOMMENTS*, see _<<Boolean values>>_ above)::
index 66920b1cde232e68b8c9bb09feb8a193cc76f49d..1d62b00105d2d341447b19202ca386f3f794d72e 100644 (file)
@@ -177,7 +177,7 @@ private:
   bool m_hash_dir = true;
   std::string m_ignore_headers_in_manifest;
   std::string m_ignore_options;
-  bool m_inode_cache = false;
+  bool m_inode_cache = true;
   bool m_keep_comments_cpp = false;
   double m_limit_multiple = 0.8;
   std::string m_log_file;
index fe49d566b760c0213e148f33d9555f6d6be91db4..755726caa98d60e56bc211ad549aa41c3e12896d 100644 (file)
@@ -16,7 +16,6 @@ SUITE_inode_cache_PROBE() {
 }
 
 SUITE_inode_cache_SETUP() {
-    export CCACHE_INODECACHE=1
     export CCACHE_DEBUG=1
     unset CCACHE_NODIRECT
     export CCACHE_TEMPDIR="${CCACHE_DIR}/tmp"  # isolate inode cache file