~/talk

Architectural Changes In New V8 versions

Talkat NodeTLV 2023 · on Wednesday, 2023-06-28· [javascript, nodejs]
slides:none on file

Explains V8 pipeline changes with concrete numbers and microbenchmarks: Ignition produces bytecode, TurboFan generates optimized binaries that expect consistent types so monomorphic functions run fastest and deopt jumps a 6.5ms case to ~8ms (~40% slower). New sparkplug produces non‑optimized machine code for every bytecode, cutting a cold start from ~1s to ~40ms (~40% improvement). ES modules let the parser load only needed exports instead of blocking require. Class property inline caching reduces a hot loop from 3.2ms to 2.7ms (~30% gain).

AI-written summary · about

  1. 0:00Intro
  2. 1:21Code Parsing Pipelines
  3. 2:17Ignition Interpreter
  4. 2:36Turbofan Compiler - JIT Compiler
  5. 4:49Optimization And De-Optimization
  6. 8:32De-Optimization - Wrong Map
  7. 12:04What Needs Improvement?
  8. 12:49V8 New Architecture - Mid Tier Compiler
  9. 13:25Before Adding SparkPlug
  10. 14:00After Adding SparkPlug
  11. 14:27Ignition Does The Hard Work
  12. 15:15SparkPlug Real World Performance Improvement
  13. 20:43JavaScript Objects
  14. 23:16The Solution - The Inline Cache
  15. 25:08Benchmark Code
~/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.