~/talk

CASE CLASSES ATE MY RAM

Talkat Scalar 2018 · 2018-04-06..04-07· [java]
slides:none on file

Case-class instances and Scala collections often use huge hidden memory: tooling like Java Object Layout (JOL) and the jamm agent shows per-pageview overhead near 96 bytes → 19 bytes after packing, with roughly 90% of memory in object headers and references. A library called scala-packed serializes case classes into Array[Byte] via Shapeless-derived encoders, plugs into Scala’s collection builders, and implements packed lists and an open-addressing packed map; benchmarks show an order-of-magnitude RAM cut but some runtime overhead and fragility in complex schemas.

AI-written summary · about

  1. 0:00Start
  2. 2:03QUIZ
  3. 5:47CASE CLASS MEMORY FOOTPRINT
  4. 8:52COLLECTION OF PRIMITIVES
  5. 10:34PERKS OF NATIVE MEMORY LAYOUT
  6. 15:02HOW IT WORKS: CASE CLASSES
  7. 19:51MAPS
~/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.