~/talk

JavaScript memory management: Visual Guide

Talkat JavaScript fwdays’23 · 2023-05-16..05-20· [javascript, web-performance]
slides:none on file

Covers how V8 lays out memory: V8 heap layout with stack vs heap, young (1–8MB) and old generations, and the claim that roughly 20% of objects survive promotion. Explains allocation details, string interning, shallow vs deep copying, and shows how to inspect with Chrome DevTools heap snapshot. Describes garbage collectors: scavenger (minor GC) that copies from-space to to-space, and a parallel mark‑sweep‑compact major GC (compaction and free‑list management, up to seven worker threads, short stop‑the‑world pauses).

AI-written summary · about

  1. 0:00JavaScript memory
  2. 1:06Binary data storage
  3. 2:30RAM architecture
  4. 4:56Virtual memory role
  5. 6:43JS engine memory
  6. 8:29V8 memory types
  7. 11:41String interning pointers
  8. 13:26Objects by reference
  9. 16:58Immutability pitfalls
  10. 17:40Garbage collection basics
  11. 19:46V8 GC algorithm
  12. 21:51Stop-the-world minor GC
  13. 23:14Generational hypothesis
  14. 24:41Old generation mark sweep
  15. 26:52Memory compaction
  16. 28:58Major GC steps
  17. 29:40V8 memory recap
  18. 31:04Q&A
~/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.