This talk is a deep dive into Kotlin data classes optimisations. We will find what optimisations are possible, and how to apply them with Kotlin compiler plugins and Android optimisers.
In this talk:
1. We quantify data classes impact on App size
2. Apply general purpose DEX-code optimizations to data classes
3. Introduce DataClassGenerate (DCG), a Kotlin-specific optimisation for data classes
4. Observe Kotlin Compiler Plugin API and DCG implementation
Describes DataClassGenerate approach
1. @DataClassGenerate annotation
2. DataClassGenerate compiler plugin
3. Kotlin Compiler plugin interaction with Redex