AOT compiling Dart for iOS Android
summary
Dart now produces ahead-of-time native binaries for iOS and Android, landed in the SDK and used by Flutter since October, with 3x faster startup on the Flutter gallery and some benchmarks showing ~2x peak improvements while others lag (DeltaBlue ~20% of JIT). The toolchain adds tree shaking and removes mirrors/spawnUri to keep binaries small, uses a lightweight DBC interpreter for iOS dev, experiments a hybrid snapshot (1.21) combining shared AOT code with JIT reoptimization.
AI-written summary · about
chapters (14)
- 0:00Intro
- 0:18Background
- 2:36Components
- 5:22Dart VM
- 6:27Type feedback
- 8:02Performance comparison
- 9:27Sample benchmarks
- 10:48File micro benchmarks
- 12:52Treeshaking
- 14:05Conclusion
- 18:51Benefits
- 20:03Closures
- 20:42Types
- 21:43Global Type Inference
related talks
34mMachines and Code Analysis - What makes Dart and Flutter run
35mMachines and Code Analysis - What makes Dart and Flutter run
55mCompilers. Dalvik. ART. And everything in between
46mAhead Of Time (AOT) Internals
01h 06mAOT Compilation
46mHow I Stopped Being Afraid and Learned to Love the Dart Compiler
44mA Deep Dive into Dart FFI
55mJIT and AOT in the JVM
