New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VM requires special flags to achieve best compile-time performance for dart2js #6495
Comments
cc @kasperl. |
Current performance difference (on Z620): --no_use_inlining: 9.5 sec -> 8 sec |
FWIW, I'm currently investigating using --heap_growth_rate=512, but I am also investigating options for decreasing memory usage. However, by its nature, dart2js requires a lot of memory. Using 512 instead of 32 saves me almost 10% on compile-time when self-hosting. |
Removed Priority-Medium label. |
FWIW, we're still passing --heap_growth_rate=512 because it makes dart2js a lot faster, but we'd really like to get to a point where we wouldn't have to do that. cc @iposva-google. |
The performance difference with/without the flag is about 10% (tested on Hello.dart, swarm and dummy_compiler_test). |
Last measured performance improvement through --heap_growth_rate=512 is 2.5% (dart2js compiling itself). I assume this bug can be closed, please reopen if you disagree. Added Fixed label. |
Currently, dart2js is passing two flags to the VM:
--heap_growth_rate=32
--no_use_inlining
I think everyone agrees that this is a short-term solution, and this bug is to track this issue.
We can remove these options when this command is faster without the options:
dart sdk/lib/_internal/compiler/implementation/dart2js.dart samples/swarm/swarm.dart
The text was updated successfully, but these errors were encountered: