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

function inline #10

Open
Horcrux7 opened this issue Jul 13, 2019 · 4 comments
Open

function inline #10

Horcrux7 opened this issue Jul 13, 2019 · 4 comments

Comments

@Horcrux7
Copy link
Member

The current compiler of Wasm code to native machine code does not have optimizing like the JIT in Java. This means there is no code optimizing like the inline of functions. That JWebAssembly must already do this function inline at creating of the Wasm file.

Code samples that should JWebAssembly should optimize are welcome.

@Frontrider
Copy link

It could piggiback on this tool, used by a lot of the compilers.
https://github.com/WebAssembly/binaryen

There is a wasm to wasm optimizer in there.

@Frontrider
Copy link

#9 may be related.

@Horcrux7
Copy link
Member Author

Horcrux7 commented Sep 7, 2020

Yes, this tool can show some optimization. But I think this tool does not know any over the original program. The optimization will be limited.

@Frontrider
Copy link

Welp. I hope it still matters for something. It can also have an interesting side effect where you could use this tool as a java to javascript transpiler, by going through webassembly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants