~/talk

Kotlin's hidden costs, revisited

Talkat Android Makers 2018 · on Tuesday, 2018-04-24· [kotlin]

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

  1. 0:00Start
  2. 7:09Companion Objects
  3. 8:58extra methods
  4. 12:00Higher-order functions + lambda expressions
  5. 17:07Local functions
  6. 19:01vararg
  7. 21:01Null safety
  8. 24:34Delegated properties
  9. 35:52Benchmarks?
~/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.