Improving Android Build performance
summary
Uses real Chess.com builds and the Gradle profiler to measure scenarios, finds GC as high as 17s (8% of build), and shows upgrading Gradle/AGP and enabling the daemon cuts startup time. Demonstrates fixes: stop resolving dependencies during configuration, lazy task registration, move git/version work to the root to avoid repeated work, and pin Crashlytics ID to shave ~20s. Shows KAPT raising a 30s clean build to 50s, benefits of build scans, remote cache and parallel builds across 16 modules, and the new incremental annotation processing support.
AI-written summary · about
chapters (16)
- 0:00Introduction and setup
- 1:12Scientific method for profiling
- 2:55JVM tuning and build scans
- 4:59Build scan creation and benefits
- 6:23Startup and configuration time
- 9:51Avoiding task configuration
- 13:02Build logic and build source
- 14:26Execution time and incremental builds
- 17:15Compile avoidance and modularization
- 19:41Annotation processors and INCAP
- 21:29Caching and build cache
- 23:54Remote caching benefits
- 24:15Parallelism and task execution
- 26:02Gradle Enterprise for monitoring
- 28:31Resources and closing remarks
- 29:14Q&A session
related talks
30mImproving Android Build performance
33mIMPROVING ANDROID BUILD PERFORMANCE
48mOptimizing Android Build Performance
27mFaster builds on Android: from 2 minutes to 2 seconds
36mTop Build Performance issues in Android projects - 2023 Edition
30mHow we brought down our build times. General optimization tips
28mMaking the most of your Gradle Builds
19mCOMPILING...? HOW TO REDUCE YOUR WAIT TIMES AND "GET BACK TO WORK"
