~/talk

The Hitchhiker's Guide to All Things Memory in JS

Talkat CascadiaFest 2016 · 2016-08-03..08-05· [javascript, web-performance]
slides:none on file

Explains how V8 divides the heap into new space, old pointer/old data, large object (>8 MB) and code space, and why V8 uses a generational GC: scavenging (copying live objects A→B in new space) and mark-and-sweep in old space, plus stop-the-world pauses. Shows Chrome DevTools heap snapshot workflow (shallow vs retained size, distance) to find detached DOM elements, and lists Node tools: memwatch, heapdump, v8 profiler; links leaks to crashing tabs and frequent GC causing jank.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03History of Computing
  3. 2:58Memory Management Basics
  4. 5:14V8 Heap Structure
  5. 8:22Garbage Collection Process
  6. 11:25Collection Techniques
  7. 13:23Profiling and Debugging
  8. 16:58Node.js Memory Tools
  9. 18:24Real-world Memory Issues
  10. 20:53Conclusion
~/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.