Set filesetInsideRunfiles to have default size = 0.
This is a small optimization as filesets aren't that common as inputs to runfiles.
RELNOTES: None
PiperOrigin-RevId: 314941255
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java
index c03916d..d8bc97ef 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java
@@ -1237,8 +1237,10 @@
actionInputMapSinkFactory.apply(populateInputData ? allInputsList.size() : 0);
Map<Artifact, Collection<Artifact>> expandedArtifacts =
new HashMap<>(populateInputData ? 128 : 0);
- Map<Artifact, ImmutableList<FilesetOutputSymlink>> filesetsInsideRunfiles = new HashMap<>();
- Map<Artifact, ImmutableList<FilesetOutputSymlink>> topLevelFilesets = new HashMap<>();
+ Map<Artifact, ImmutableList<FilesetOutputSymlink>> filesetsInsideRunfiles =
+ Maps.newHashMapWithExpectedSize(0);
+ Map<Artifact, ImmutableList<FilesetOutputSymlink>> topLevelFilesets =
+ Maps.newHashMapWithExpectedSize(0);
ActionExecutionException firstActionExecutionException = null;
@@ -1409,8 +1411,10 @@
}
// When there are no missing values, we can start populating input data.
- Map<Artifact, ImmutableList<FilesetOutputSymlink>> filesetsInsideRunfiles = new HashMap<>();
- Map<Artifact, ImmutableList<FilesetOutputSymlink>> topLevelFilesets = new HashMap<>();
+ Map<Artifact, ImmutableList<FilesetOutputSymlink>> filesetsInsideRunfiles =
+ Maps.newHashMapWithExpectedSize(0);
+ Map<Artifact, ImmutableList<FilesetOutputSymlink>> topLevelFilesets =
+ Maps.newHashMapWithExpectedSize(0);
S inputArtifactData = actionInputMapSinkFactory.apply(allInputsList.size());
Map<Artifact, Collection<Artifact>> expandedArtifacts = Maps.newHashMapWithExpectedSize(128);