Kotlin's hidden costs, revisited
summary
Examines concrete Kotlin bytecode and decompiled Java to show when features cost memory, methods or cycles: Java bytecode inspection, Android Studio decompile view and small microbenchmarks expose boxing, synthetic accessors for companion objects, lambda allocation vs inline, vararg copies and delegated-property overhead; notes recent compiler fixes (companion access and until/range optimizations) and critiques flawed benchmarks including a claimed 660x slower on ART result; recommends profiling on the actual Android/ART target rather than trusting headline numbers.
AI-written summary · about
chapters (9)
- 0:00Start
- 7:09Companion Objects
- 8:58extra methods
- 12:00Higher-order functions + lambda expressions
- 17:07Local functions
- 19:01vararg
- 21:01Null safety
- 24:34Delegated properties
- 35:52Benchmarks?








