~/talk

Gradle: Incremental compilation 101

Talkat Mobius 2022 Autumn · 2022-11-09..11-21· [android]
links:none on file
slides:none on file

Research into incremental compilation for the Android toolchain compares concrete behaviors: Java’s class-based heuristic in Gradle recompiles changed classes plus any class that references them, so in a 250-class synthetic test ABI-compatible and incompatible edits show little top-level difference, while extracting an interface reduces rebuild scope; Gradle 6.0 narrows blast radius and Gradle 7.1 fixes public-constant explosions. Kotlin’s compiler uses symbol-based analysis, online inlining still forces callers to recompile, and enabling useClassSnapshot (Kotlin 1.6.20+; public in 1.7.20) yields about 12% raw build-time savings in profiled runs with Gradle Profiler.

AI-written summary · about

  1. 0:00Start
  2. 15:06Java IC: Synthetic Test
  3. 15:37Android Studio poet
  4. 18:28Java IC: Constants
  5. 26:10Levels of Incrementality
  6. 30:05Kotlin CA: Old Approach
  7. 35:19Kotlin CA: Synthetic Test
  8. 38:22What Did We Not Discuss?
  9. 39:57How to Develop Your Project?
  10. 44:19Parallel Build
  11. 45:15Parallel Kotlin Compilation?
~/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.