File tree 1 file changed +7
-6
lines changed
src/main/java/com/google/devtools/build/lib/remote
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 28
28
import com .google .common .base .Throwables ;
29
29
import com .google .common .collect .ImmutableList ;
30
30
import com .google .common .collect .ImmutableSet ;
31
+ import com .google .common .collect .Iterables ;
31
32
import com .google .common .util .concurrent .ListenableFuture ;
32
33
import com .google .devtools .build .lib .profiler .Profiler ;
33
34
import com .google .devtools .build .lib .profiler .SilentCloseable ;
@@ -82,13 +83,13 @@ public void ensureInputsPresent(
82
83
Map <Digest , Message > additionalInputs ,
83
84
boolean force )
84
85
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 () );
90
91
91
- if (allDigests .isEmpty ()) {
92
+ if (Iterables .isEmpty (allDigests )) {
92
93
return ;
93
94
}
94
95
You can’t perform that action at this time.
0 commit comments