3 ms·
You might want to watch this talk on AOT compiling Dart, I'll link right to the perf benchmarks: https://youtu.be/lqE4u8s8Iik?t=9m28s https://youtu.be/lqE4u8s8I
by markdog12 10y ago
You might want to watch this talk on AOT compiling Dart, I'll link right to the perf benchmarks: https://youtu.be/lqE4u8s8Iik?t=9m28s https://youtu.be/lqE4u8s8Iik?t=9m28s
I think it's a work in progress, but main benefit at least at the time was faster startup.
- tomatsu 10y agoAOT compiling was initially all about iOS (where JIT isn't allowed), but you can now do that everywhere with "application snapshots" which were recently added with Dart 1.21. Unlike the script snapshots, application snapshots also include CPU-specific native code in addition to the serialized token stream of the source code. So, you don't just skip the parsing stage, you also skip the warmup phase. Your application starts instantly and it runs at full speed from the get-go. https://github.com/dart-lang/sdk/wiki/Snapshots https://github.com/dart-lang/sdk/wiki/Snapshots