Nashorn, SquirrelFish, v8 — Speeding Up the Zoo
summary
Presents concrete, measured optimizations for JavaScript engines Nashorn, SquirrelFish and V8 that reduce allocations and force native-array layouts to speed real workloads (examples showing ~1.5× and smaller percent gains). Describes a Babel plugin that initializes arrays so engines enter fast-element mode, techniques to shift objects to consistent shapes to avoid dictionary-mode (with discussed heuristics like property-count and array-size thresholds such as 32/1000/10000), and using an optimization-tracing tool to inspect deoptimizations; includes built-and-benchmarked demos showing improvements in frame rate and GC pressure.
AI-written summary · about
