Alice's Adventures in Memory Management, or how JavaScript objects work
summary
Covers how V8 lays out values on stack and heap and how strings and objects become pointers, explains string interning and small-int SMIs, shows the Young Generation versus old generation lifecycle, and names the algorithms: scavenger (copying from/to) for ~1–8 MB young space and mark-and-sweep plus compaction for the old space. Demonstrates stop‑the‑world pauses, why fragmentation happens, when objects get promoted, and what causes visible UI jank.
AI-written summary · about
chapters (5)
related talks
28mAlice's Adventures in Memoryland
31mJavaScript memory management: Visual Guide
27mVisualised guide to memory management in JavaScript
26mThe Hitchhiker's Guide to All Things Memory in Javascript
22mThe Hitchhiker's Guide to All Things Memory in JS
21mMemory: Don't Forget to Take Out the Garbage
38mUnderstanding Memory Behavior on Nodejs
30mMemory Don't Forget To Take Out The Garbage
