Commit 17276d4
Prefetch inputs before acquiring the resource and sending Executing event.
prefetchInputs could wait for network I/Os to download all the inptus for this local action which might take a long time. It is possiable that local actions acqure resource and then wait for the network I/Os which is a waste.
The prefetch is also moved before sending Executing event so that the UI will display the action is being prepared instead of running. i.e.
```
[Prepa] Linking xxx
```
instead of
```
Linking xxx
```
when prefetching inputs for the action.
PiperOrigin-RevId: 481874944
Change-Id: I5cd9d379d3ddc68ddf444d4c0ebce5f1ae3ef9051 parent 0eeac8b commit 17276d4
File tree
3 files changed
+22
-19
lines changed- src/main/java/com/google/devtools/build/lib
- exec/local
- remote
- sandbox
3 files changed
+22
-19
lines changedLines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| |||
351 | 354 | | |
352 | 355 | | |
353 | 356 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | 357 | | |
361 | 358 | | |
362 | 359 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | 160 | | |
163 | 161 | | |
| 162 | + | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
Lines changed: 17 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
98 | 107 | | |
99 | 108 | | |
100 | 109 | | |
| |||
129 | 138 | | |
130 | 139 | | |
131 | 140 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
| |||
0 commit comments