A Tale of TurboFan: Four Years That Changed V8 Forever
summary
TurboFan is a new optimizing compiler for V8 that implements escape analysis and object lifetime tracking to remove allocations and enable in-function optimizations. It integrates with V8’s existing pipeline by running replacement logic on top of current passes, targets real workloads (e.g., a Manhattan distance microbenchmark), and yields measured performance improvements ranging from about 0.3% to ~6% on various benchmark suites.
AI-written summary · about
chapters (11)
- 0:00TurboFan intro
- 1:07TurboFan in V8 and Chrome
- 3:10Compiler architecture
- 6:23Generic operation optimizations
- 8:53Object lifetime and memory
- 12:04Memory access locality
- 15:26Function parameter optimizations
- 17:38Performance improvements
- 20:05Benchmarking performance
- 22:21Maintainable JS performance
- 23:21Q&A
related talks
36mWhat’s Inside TurboFan?
32mV8 by example: A journey through the compilation pipeline
28mV8 and How It Listens to You
39mAlgorithms in the Front End: from V8 to VDOM
23mJoin the super secret V8 club & become a JavaScriptbender
01h 00mV8 Under the Hood
26mPractical Optimization for V8
49mWhen Fast is Faster Than Fastest
