Compilers. Dalvik. ART. And everything in between
summary
Walks through how Android moves from Java .class to on-device code: D8 replaces dx and integrates desugaring, producing smaller, faster dex with ~2s faster local builds and ~100–200KB smaller outputs in examples. Explains ART’s JIT/AOT hybrid: device profiles upload to Play Store, shared profiles reduce warmup, and about eight launches yield ~70% hotspot compilation. Covers R8 as a ProGuard replacement that shrinks more aggressively, removing ~2x methods, gives ~10s build wins in tests and remains experimental.
AI-written summary · about
chapters (7)
- 0:00Introduction to compilers
- 10:23CPU and JVM basics
- 22:49Dalvik and Dex files
- 26:38ART and JIT compilation
- 32:39Build time issues and d8
- 40:26R8 optimization and ProGuard
- 45:04Call to action for developers
related talks
34mAndroid or the ART of Optimizing Java Code
37mDeep dive into the ART runtime
39mWhat's new in Android Runtime
28mBest practices using compilers in Android Studio
35mUnderstanding the Kotlin to Dalvik bytecode translation
41mDigging into D8 and R8
42mUnderstanding the Kotlin to Dalvik bytecode translation
37mUnderstanding Android Runtime (ART) for faster apps
