~/talk

Kotlin High-Performance Programming

TalkinJapaneseat DroidKaigi 2023 · 2023-09-14..09-16· [android]
links:none on file
slides:none on file

Kotlin performance hinges on memory access: avoid unnecessary object copies and short-lived instances. The talk compares patterns (returning Pair vs out-arg), shows collection chains allocate per step (use Sequence for large streams or inline loops for small ones), warns that varargs cause array copies, and recommends using Android Profiler and microbenchmarks to measure before optimizing while encapsulating changes to keep code maintainable.

AI-written summary · about

  1. 0:00Introduction
  2. 2:50Is Kotlin slow?
  3. 7:46Bulk data processing prereqs
  4. 9:53Memory latency impact
  5. 13:08Disposable instances cost
  6. 15:53Data classes vs tuples internals
  7. 19:54Optimizing collection ops
  8. 23:48Varargs spread operator costs
  9. 26:49Hidden costs summary
  10. 27:53Algorithm selection pitfalls
  11. 31:52Precision vs computation cost
  12. 33:17Eliminating waste vs readability
  13. 34:43Readability and maintainability
  14. 36:08Measure improve repeat
  15. 36:52Summary
~/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.