~/talk

Gradle under a microscope profiling and optimizing builds

links:none on file
slides:none on file

Gradle build time splits into configuration and execution; Android X runs ~16,500 builds and ~9,500 pre-submits monthly so saving seconds multiplies. Concrete fixes: enable parallel builds and a remote build cache (S3/GCS), adopt configuration cache (Gradle 8.0.1) and benchmark with Gradle Profiler + YourKit. Findings: configuration cache serialization can cost ~40s, Square cut weekly build hours from ~184 to ~24, external Git calls and 287,000 thrown exceptions cost ~10s, unbuffered IO and reflection add seconds; buffering and reducing repeated work fix it.

AI-written summary · about

  1. 0:00Welcome and introduction
  2. 1:11What is Gradle and why it matters
  3. 3:58Optimizing execution phase
  4. 8:48Configuration phase deep dive
  5. 15:29Single-threaded bottlenecks
  6. 23:32Gradle Profiler for profiling
  7. 29:05Real-world optimization examples
  8. 36:50Avoiding regressions and future work
  9. 38:13Q&A
~/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.