diff options
author | 2016-01-21 19:17:19 +0000 | |
---|---|---|
committer | 2016-01-22 15:53:27 +0000 | |
commit | 1a34a248b05c9e64e2db0d76f3ad8e93cf755f99 (patch) | |
tree | 700009696af0f00536e6880394af4b00dfae95c1 /src/test/java/com/google/devtools/build/lib/actions/util | |
parent | 0bf232e1bdf711012899298d9aa9734a40636861 (diff) |
Improve space efficiency of Blaze action cache: For actions that don't perform input discovery, there is no need to store the full set of edges in the action cache. This data is only used to formulate the set of input files for an action prior to checking the validity of a cache entry. For non-input-discovering actions, the set of input files is known statically and the action cache data is not used.
--
MOS_MIGRATED_REVID=112704382
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/actions/util')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/actions/util/ActionCacheTestHelper.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/actions/util/ActionCacheTestHelper.java b/src/test/java/com/google/devtools/build/lib/actions/util/ActionCacheTestHelper.java index 9727b22aea..6b3b8a179a 100644 --- a/src/test/java/com/google/devtools/build/lib/actions/util/ActionCacheTestHelper.java +++ b/src/test/java/com/google/devtools/build/lib/actions/util/ActionCacheTestHelper.java @@ -33,7 +33,9 @@ public class ActionCacheTestHelper { @Override public void remove(String key) {} @Override - public Entry createEntry(String key) { return new ActionCache.Entry(key); } + public Entry createEntry(String key, boolean discoversInputs) { + return new ActionCache.Entry(key, discoversInputs); + } @Override public long save() { return -1; } @Override |