~/talk

Memory: Don't Forget to Take Out the Garbage

Talkat Nordic.js 2019 · 2019-10-10..10-11· [javascript, web-performance, web-platform]
slides:none on file

Explains V8's generational GC with a young generation split into two semi‑spaces scavenged by a minor collector and an old generation that uses concurrent marking, sweeping and a stop‑the‑world compacting pass (Orinoco moves more work concurrent); shows a live demo leaking a global and via timers/event handlers, fixes by scoping variables and clearInterval, and uses Chrome DevTools Performance Monitor plus the collect garbage button to prove the heap jumps from ~20MB to ~400MB (baseline ~100MB); mentions pre-tenuring and practical diagnostics.

AI-written summary · about

  1. 0:00Introduction
  2. 0:35Memory
  3. 5:50Garbage Collection
  4. 7:07How Garbage Collection Works
  5. 9:22scavenging
  6. 10:33marking
  7. 11:09sweeping
  8. 12:24memory problems
  9. 13:23memory bloat
  10. 14:10baseline consumption
  11. 14:52memory leaks
  12. 15:16live demo
  13. 20:18summary
~/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.