Taming the Kotlin Compiler
summary
Measured command-line runs compile 1–5,000 dummy sources and show kotlinc much slower than javac, but using Gradle plus the Kotlin daemon and Gradle daemon bounds Kotlin’s penalty near javac. Real-world tests use Cash App’s Wire-generated protos and kapt stubs; Gradle --profile and Kotlin build report flags identify slow tasks. Incremental compilation exists but a non-incremental compilation bug (absolute paths break remote cache) plus lack of Java-style compilation avoidance for Kotlin cause unexpected full rebuilds; FS-watch confirmed generated stub folders are repeatedly rewritten.
AI-written summary · about
chapters (6)
- 0:00Start
- 15:25Why are my builds slow?
- 19:01Build cache
- 22:33Noncremental compilation
- 25:25Compilation avoidance
- 29:24How do I debug my builds?








