~/talk

Visualised guide to memory management in JavaScript

Talkat JSHeroes 2023 · 2023-05-18..05-19· [javascript, web-performance]
slides:none on file

Starts at hardware: RAM cells, addresses and virtual memory, then follows JavaScript values into V8 showing literal mechanisms — V8 uses a small Young generation (typically 1–8 MB), a scavenger two‑space copy collector that requires roughly double the space and yields millisecond pauses, and a major mark‑sweep‑compact collector that promotes ~20% of objects to the old generation. Covered details include string interning, pointer vs value layout, free lists and pages, concurrent marking/sweeping, compaction on the main thread, and where pauses still occur.

AI-written summary · about

  1. 0:00Introduction and hardware
  2. 2:17Memory architecture
  3. 5:36JavaScript engine overview
  4. 8:21Heap and stack memory
  5. 12:21References and copying
  6. 15:50Garbage collection basics
  7. 20:13Advanced garbage collection
  8. 24:35Recap and conclusion
~/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.