Commit 87d6e9a
Support
We extend `RepositoryCache` and `DownloadManager` to support pulling checksums from extended attributes. In some example builds, I observe a 5x speedup in repository fetching: https://github.com/sushain97/bazel-faster-fetch-repro.
I would like to make `xattrProvider` not-nullable in any context. However, it's not immediately clear how I could thread access to one in the `BazelPackageLoader` context: https://github.com/sushain97/bazel/blob/1518e04579e6a1c966eb8fbf6d65603e0a1d41d5/src/main/java/com/google/devtools/build/lib/skyframe/packages/BazelPackageLoader.java#L108-L110. Open to any suggestions.
Closes #18221.
PiperOrigin-RevId: 529730007
Change-Id: Ic06b4585988a6b5c09f61cee68daf1dcdf3e46fc--unix_digest_hash_attribute_name in repository cache1 parent 1cd3588 commit 87d6e9a
File tree
3 files changed
+27
-0
lines changed- src
- main/java/com/google/devtools/build/lib/bazel/repository/cache
- test/java/com/google/devtools/build/lib/bazel/repository/cache
3 files changed
+27
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
313 | 323 | | |
314 | 324 | | |
315 | 325 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
174 | 189 | | |
175 | 190 | | |
176 | 191 | | |
| |||
0 commit comments