~/talk

Improving Android Build Performance

Talkat droidCon Berlin 2019 · 2019-07-01..07-03· [android]
links:none on file
slides:none on file

Shows concrete fixes and tools: use Gradle profiler to automate scenarios, upload results to build scans, and run Gradle 5.5 with Android Gradle Plugin 3.4.1 (3.5 incoming). Give the daemon more heap (example: 4 GB cuts GC from 20s to 5s, shaving ~12s), avoid configuration-time dependency resolution and costly settings scripts, enable configuration avoidance and task caching, remove changing inputs (Crashlytics build IDs), use incremental compilation/Kapt with Kotlin 1.3.30, and enable remote cache and parallel builds for big multi-module gains.

AI-written summary · about

  1. 0:00Introduction to Android builds
  2. 6:31Profiling build performance
  3. 11:26General build optimization tips
  4. 17:49Configuration phase issues
  5. 24:48Execution time improvements
  6. 31:29Caching and remote cache
  7. 36:25Parallel task execution
  8. 38:52Conclusion and resources
~/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.