Skip to content

Commit

Permalink
Change default opt-level for Config to speed.
Browse files Browse the repository at this point in the history
This commit changes the default opt-level for a new `Config` to `speed`.

Fixes bytecodealliance#981.
  • Loading branch information
peterhuene committed Feb 26, 2020
1 parent 78b32e2 commit d6252bc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/api/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ impl Config {
.set("enable_verifier", "false")
.expect("should be valid flag");

// Turn on cranelift speed optimizations by default
flags
.set("opt_level", "speed")
.expect("should be valid flag");

Config {
debug_info: false,
validating_config: ValidatingParserConfig {
Expand Down

0 comments on commit d6252bc

Please sign in to comment.