~/talk

The Cost of Kotlin Language Features

Talkat KotlinConf 2017 · 2017-11-02..11-03· [kotlin]
slides:none on file

Benchmarks and bytecode inspection show Kotlin rarely forces catastrophic slowdowns: simple let usage compiles to nearly the same JVM bytecode, but JMH benchmarks reveal a consistent ~3–4% cost per non-null public parameter from runtime null checks; string templates cost ~5–8% in short concatenations due to extra empty-string appends; passing function values causes boxing that can halve throughput for primitives; experiments run on a Raspberry Pi to avoid noisy hosts and highlight the non-null check overhead.

AI-written summary · about

  1. 0:00Introduction
  2. 2:55Why Care
  3. 4:45Lets
  4. 11:20MicroBenchmarks
  5. 15:40Why is Java quicker
  6. 17:43String interpolation
  7. 20:34Running benchmarks
  8. 23:57Kotlin properties
  9. 26:32Kotlin functions
  10. 29:41Kotlin mapping
  11. 32:59Other costs
  12. 34:59Conclusion
~/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.