Optimizing With Static Hermes
summary
A walkthrough of Static Hermes shows a concrete pipeline: a TypeScript ray tracer from Microsoft runs under Hermes interpreted at ~1300 ms per frame, with soundly declared types and ahead‑of‑time compilation it drops to ~120 ms — a reported 10x speedup. Key tools and passes are the type checker enforcing sound types, optimizer passes like inlining and object elision, and native binary output; the demo and benchmarks demonstrate the optimizations actually work.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:08Live demo of Static Hermes performance
- 3:58What Static Hermes is
- 7:50Soundness in Static Hermes type system
- 9:15Performance gains from typed properties
- 11:17Optimizing array accesses
- 13:25Compiler optimizer and inlining
- 17:19When inlining is possible
- 19:46Types enabling method inlining
- 21:08Object elision optimization
- 24:23Recap of optimizations
- 25:03Summary
related talks
31mBuilding optimising compiler for Dart
23mFast by default: algorithmic performance optimization in practice
36mOf JavaScript Ahead-Of-Time Compilation Performance
36mFast and Dynamic
28mTypescript Performance: Going Beyond The Surface
34mBuild-time Optimizations in JavaScript Applications
46mTurbocharging Client-Side Processing: Leveraging asm.js
14mPragmatic performance patterns
