DataClassGenerate. Shrinking Kotlin data classes
- Track: Kotlin devroom
- Room: D.kotlin
- Day: Sunday
- Start: 13:40
- End: 14:10
- Video with Q&A: D.kotlin
- Video only: D.kotlin
- Chat: Join the conversation!
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 fod 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
Speakers
Sergei Rybalkin |