~/talk

Iteration Speeds with Gradle Configuration Cache

links:none on file
slides:none on file

Gradle stores and reuses the configuration phase to cut iteration overhead: AndroidX (786 projects) drops a 42s configure+run into about 4s, roughly 32x faster for simple test iterates. Workflow uses Gradle’s configuration cache, inspects results with GCC and SpeedScope output, and gains extra parallel task execution. Common blockers are reading files or env vars during configuration, init scripts, and nonserializable custom types. Practical path: enable warn mode, upgrade plugins, fix build logic, add CI checks that validate cache hits.

AI-written summary · about

  1. 0:00Faster iteration with Gradle
  2. 3:10Gradle’s build phases
  3. 5:15Configuration cache reduces overhead
  4. 6:18Configuration cache benefits
  5. 8:43Parallel task execution
  6. 11:27How config cache works
  7. 12:30Debugging with GCC tool
  8. 14:56Common cache issues
  9. 17:45Dynamic logic invalidation
  10. 20:59Config phase file pitfalls
  11. 23:04Init scripts break cache
  12. 24:49Environment variables and system properties issues
  13. 26:57Hidden file tree inputs
  14. 31:55Third-party plugin issues
  15. 32:18Android X adoption journey
  16. 34:47Handling regressions
  17. 35:52Feature requests
  18. 36:13Key takeaways
~/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.