Exploring Kotlin’s hidden costs — Part 2
Local functions, null safety and varargs
This is part 2 of an ongoing series about the Kotlin programming language. Don’t forget to read part 1 if you haven’t already.
I prefer to say it the other way around: in most cases there will be no noticeable performance impact, but be aware of what your code actually does because in performance-critical scenarios like nested loops, these penalties may stack up and make your old Android device drop a frame or two.