Skip to content
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

Tune optimization profiles #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

OlivierNicole
Copy link
Collaborator

Tunes the Binaryen optimization passes to achieve two goals:

  • A fast build with --opt=1
  • A fast executable with --opt={2,3}, without making the build times unreasonably long.

It turns out that only a handful of selected passes for --opt=1 and -O2 and -O3 seem to achieve these goals for the time being.

@vouillon
Copy link
Collaborator

We will probably need to reconsider this. With separate compilation and #30, we might get a fast build even with more optimizations enabled.

Tunes the Binaryen optimization passes to achieve two goals:

- A fast build with `--opt=1`
- A fast executable with `--opt={2,3}`, without making the build times
  unreasonably long.

It turns out that only a handful of selected passes for `--opt=1` and
`-O2` and `-O3` seem to achieve these goals for the time being.

Co-authored-by: Jérôme Vouillon <jerome.vouillon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants