build: raise R8 thread pool to 32
- Commit
7e7a794f6b3c7832b0222ec0562645f377384987- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-18 17:27 UTC (17 days ago)
- Parents
932de7f
Owner decision: release builds were R8-bound on a 192-core box with android.r8.threadPoolSize=1 (one ~single-core R8 process at a time). Raise to 32 so each R8 task parallelizes. The old value guarded F-Droid byte-for-byte reproducibility (multi-threaded R8 output can depend on thread timing), so reproducibility should be re-verified before relying on the output for a release.
Diff
gradle.properties
diff --git a/gradle.properties b/gradle.propertiesindex 4093a1b295..a1ea7d0ada 100644--- a/gradle.properties+++ b/gradle.properties@@ -27,11 +27,11 @@ kotlin.code.style=official # Performance & Optimization org.gradle.configuration-cache=true android.enableR8.fullMode=true-# One thread per R8 task (each runs in its own process, see settings.gradle.kts):-# multi-threaded R8 output depends on thread timing, which broke F-Droid's-# byte-for-byte reproducibility. Release builds parallelize across apps instead-# (android.r8.maxWorkers).-android.r8.threadPoolSize=1+# R8 threads per task (each runs in its own process, see settings.gradle.kts).+# Raised to 32 for parallel local release builds (owner decision, 2026-11-18);+# multi-threaded R8 output can depend on thread timing, so F-Droid byte-for-byte+# reproducibility should be re-verified before relying on it for a release.+android.r8.threadPoolSize=32 # Preview Support (Remove once SDK 37 is stable) android.suppressUnsupportedCompileSdk=37.0