JWebAssembly
JWebAssembly copied to clipboard
function inline
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.
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.
#9 may be related.
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.
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.