~/talk

Mind The Heap: Techniques For Allocation Free Programming In Scala

Talkat Scala Italy 2019 · 2019-09-20..09-21· [scala]
links:none on file
slides:none on file

Allocation itself costs measurable CPU time; using the Epsilon collector and toggling tlaps shows JVM allocation machinery matters. Returning custom extractor types removes Option allocations; name-based extractors beat the Option version on hot paths. Annotating generics with specialized generics prevents boxing of primitives. Building lists with Seq.apply creates interim Array and ListBuffer objects — using cons is cheaper. An off‑heap cache via sun.misc.Unsafe storing 64‑byte payloads yields far lower GC pressure and much faster runs (benchmarked at 250k, 500k, 1M, 3M events).

AI-written summary · about

  1. 0:00Introduction to allocation free programming
  2. 1:06Costs of object instantiation on JVM
  3. 9:41Optimizing extractor objects
  4. 16:07Specialized generics to avoid boxing
  5. 22:36API pitfalls in list construction
  6. 28:23Off-heap allocation strategies
  7. 39:43Takeaways and future outlook
  8. 42:18Q&A session
~/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.