File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/main/java/com/google/devtools/build/lib/remote Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 2828import com .google .common .base .Throwables ;
2929import com .google .common .collect .ImmutableList ;
3030import com .google .common .collect .ImmutableSet ;
31+ import com .google .common .collect .Iterables ;
3132import com .google .common .util .concurrent .ListenableFuture ;
3233import com .google .devtools .build .lib .profiler .Profiler ;
3334import com .google .devtools .build .lib .profiler .SilentCloseable ;
@@ -82,13 +83,13 @@ public void ensureInputsPresent(
8283 Map <Digest , Message > additionalInputs ,
8384 boolean force )
8485 throws IOException , InterruptedException {
85- ImmutableSet <Digest > allDigests =
86- ImmutableSet .< Digest > builder ()
87- . addAll ( merkleTree .getAllDigests ())
88- . addAll ( additionalInputs . keySet ())
89- . build ( );
86+ Iterable <Digest > merkleTreeAllDigests ;
87+ try ( SilentCloseable s = Profiler . instance (). profile ( "merkleTree.getAllDigests()" )) {
88+ merkleTreeAllDigests = merkleTree .getAllDigests ();
89+ }
90+ Iterable < Digest > allDigests = Iterables . concat ( merkleTreeAllDigests , additionalInputs . keySet () );
9091
91- if (allDigests .isEmpty ()) {
92+ if (Iterables .isEmpty (allDigests )) {
9293 return ;
9394 }
9495
You can’t perform that action at this time.
0 commit comments