Commit 7f3a88f
committed
Move to using GRPC to fetch cache entries from GCP
Local testing shows that it drops sequential download time by ~40%
Compare:
Before patch: https://ge.androidx.dev/scans/performance?performance.metric=buildCacheOverhead%2CbuildCacheOverheadDownload&search.startTimeMax=1758610799999&search.startTimeMin=1758317400000&search.tags=nonGrpc&search.tasks=assemble&search.timeZoneId=America%2FLos_Angeles&search.usernames=aurimas
After patch: https://ge.androidx.dev/scans/performance?performance.metric=buildCacheOverhead,buildCacheOverheadDownload&search.startTimeMax=1758610799999&search.startTimeMin=1758316800000&search.tags=not:nonGrpc&search.tasks=assemble&search.timeZoneId=America%2FLos_Angeles&search.usernames=aurimas
Going from 13m 1s to 7m 54s in sequential download time.
Test was running the following in androidx checkout:
rm -fr ../../out/.gradle/caches/build-cache-1/ && rm -fr ../../out/androidx && ALLOW_PUBLIC_REPOS=true ./gradlew -p compose assemble --dependency-verification=off1 parent 96c1622 commit 7f3a88f
File tree
2 files changed
+5
-4
lines changed- gcpbuildcache
- src/main/kotlin/androidx/build/gradle/gcpbuildcache
2 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
0 commit comments