~/talk

Kotlin Perfomance on Android

Talkat РИТ++ 2017 · 2017-06-05..06-06· [android, kotlin]
links:none on file
slides:none on file

Benchmarks on an animation-heavy Android app compare Kotlin vs Java across four phones and show Kotlin is not inherently slower: unoptimized Kotlin sometimes adds milliseconds to frame time but after targeted fixes median frame times match or beat Java. Concrete fixes: use @JvmField or private properties to get getfield instead of invokevirtual, avoid companion object indirections, prefer index-based for-loop over iterator for ArrayList, watch boxing and null-assert checks, and run ProGuard/ Redex — results: APK size down ~7% and frame latency parity.

AI-written summary · about

  1. 0:00Introduction
  2. 3:17Android benchmarking
  3. 6:28Kotlin vs Java performance
  4. 13:05Optimizing properties and fields
  5. 17:01Static methods in Kotlin
  6. 21:41Nullability checks
  7. 24:11Primitives and autoboxing
  8. 28:10Loop optimization
  9. 32:23Practical benchmarks
  10. 39:26Summary and recommendations
  11. 40:51Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.