Desugaring Kotlin features and their performance impact

by | Feb 3, 2019 | Voxxed Days Bucharest 2019

Ionut Balosin is a Software Architect and Independent Technical Trainer. He is a regular speaker at software development conferences and meetups around the world, delivering presentations, training courses and workshops. For more details please check his website www.ionutbalosin.com

In this presentation I will try to demystify few Kotlin language features and to present how they are compiled into the bytecode in order to have a better understanding about what happens under the hood.

Also few JMH performance tests are presented between the same functionality written in Java and Kotlin. Few examples:

– extension methods

– optional parameters

– data classes

– when {}

– inlining and its performance costs

– Null Safety and its performance costs