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

Fast compilation mode #90

Open
vouillon opened this issue Oct 4, 2024 · 0 comments
Open

Fast compilation mode #90

vouillon opened this issue Oct 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@vouillon
Copy link
Collaborator

vouillon commented Oct 4, 2024

It might make sense to do without Binaryen when debugging since it can be slow. For that, we need to generate directly some Wasm binary code, with source maps (#93).

With separate compilation, we use wasm-merge only to compile and link the runtime files (from the different linked libraries). It is probably ok to keep this since that should be fast.

We probably want to implement some optimizations to still generate decent code:

  • reduce the number of local variables by taking advantage of the Wasm stack and by coalescing them
  • eliminate clearly unnecessary casts and boxing operations.
@vouillon vouillon added the enhancement New feature or request label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant