~/talk

How we brought down our build times. General optimization tips

links:none on file
slides:none on file

Pinterest cuts p95 Android build time ~31% (11:05→7:36) and P50 from 1:25 to 32s by combining concrete fixes: use Gradle Enterprise to surface cache misses, enable parallel Gradle/kapt execution and cache for kapt, add tiny Kotlin classes to Java-only modules to restore incremental cache, switch to non‑transitive R classes, remove empty folders, stop environment‑dependent buildConfig values, enlarge remote cache and restrict which CI tasks push to it. Clean local builds fall from minutes to ~50s and main‑branch builds hit remote cache ~60% of the time.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:09Build times before optimizations
  3. 3:17Current build times and improvements
  4. 5:48Gradle Enterprise overview
  5. 8:16Parallelization opportunities
  6. 9:47Modularization efforts
  7. 10:33Incremental cache optimizations
  8. 14:49Local cache optimizations
  9. 18:06Remote cache setup and fixes
  10. 25:12Development experience tweaks
  11. 27:41Remote builds considerations
  12. 28:04Results and achievements
  13. 29:30Future plans and hiring
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.