Uber Apr 30, 2019

Measuring Kotlin Build Performance

Article Summary

Uber ran 129 experiments across 354 projects to answer one question: What's the real cost of adopting Kotlin at scale?

Uber's Mobile Engineering team partnered with JetBrains to measure Kotlin build performance across their massive Android monorepo with 2,000+ modules. They generated 1.4 million lines of code in 13 different configurations to understand the tradeoffs of different project structures and tooling choices.

Key Takeaways

Critical Insight

Compilation time grows linearly with project size, but annotation processing (Kapt) and mixed source sets create the biggest performance bottlenecks in Kotlin builds.

The team discovered surprising differences between how Apt and Kapt perform, plus insights on type inference costs that Swift developers will find familiar.

Recent from Uber

Related Articles