Hidden classes
How V8 assigns a hidden shape to an object, and why property order and composition determine its stability.
Hidden classes, inline caches, and dictionary mode. How one line changes the internal model of an object, and what it costs on a hot path.
How V8 assigns a hidden shape to an object, and why property order and composition determine its stability.
Monomorphic, polymorphic, and megamorphic property access, including what pushes a hot path from the first to the third.
When an object falls back to a dictionary, which optimizations it loses, and how much more that costs.
How to write constructors and hot data structures whose shapes remain stable and optimizable.
Slides, reproducible benchmarks, the recording, and a detailed article. The talk and written article are in Russian.