~/talk

Efficient Kotlin

Talkat Mobius 2019 Moscow · 2019-12-07..12-08· [kotlin]
slides:none on file

Shows concrete costs and fixes: single object allocation and header sizes (object header ~8–12 bytes), boxed Integer overhead (boxed Integer ~16 bytes + reference, 5–6× primitive), and measurable wins from avoiding allocations. Demonstrates caching patterns (map cache, soft references + property delegate), regex and static-initialization lifting with lazy, and when to prefer Sequence for >10k elements (benchmarks show ~30–50% faster on big collections). Recommends inline functions, inline classes as zero-cost wrappers, and nulling array slots to avoid leaks.

AI-written summary · about

  1. 0:00Start
  2. 5:13Object Declaration
  3. 5:40Object Declarations
  4. 6:38Factory Functions with Cash
  5. 8:59Weak Reference
  6. 10:28Object Lifting
  7. 13:09Using Primitives
  8. 14:55Boundary Functions
  9. 16:22Inline Modifier
  10. 19:49Crossing Line and Non in Line
  11. 23:43Inline Classes
  12. 32:42Efficient Collection Processing
  13. 33:33Difference between Iterable and Sequence
  14. 38:51Small Collections
  15. 39:51Sequence Debugger
  16. 40:14Limit the Number of Operations
  17. 41:06Easier Alternatives for Common Collection Processing Patterns
  18. 43:14Multiple Collections
  19. 45:42Questions
  20. 46:10Benchmarks
  21. 53:08Fibonacci Numbers
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.