A Tale of Types, Classes, and Maps
summary
Maps out how JavaScript engines turn object shapes into concrete runtime structures and what actually moves performance: hidden classes (maps) that record property order, inline caches that specialize lookups, and the shift to dictionary mode when shapes become polymorphic. Builds small microbenchmarks and inspects engine traces and memory layouts to show which code patterns force deoptimizations, measures lookup and allocation cost changes, and implements simple rewrites that produce consistent, verifiable speedups.
AI-written summary · about
chapters (7)
- 0:00Introduction
- 5:46Type systems in programming
- 12:11Class-based abstractions
- 20:40Map data structures
- 28:12Performance implications
- 35:49Use cases and examples
- 39:49Q&A
related talks
25mJavaScript engines how do they even?
21mDemystifying Javascript Engines
17mDemystifying (JavaScript) engines
29mJavaScript Engines: How Do They Even?
26mJavaScript VMs 101
38mJavaScript Performance Through a Spyglass
33mJavaScript: The V8 Engine optimization tips (...)
34mUnderstanding JavaScript Performance
