-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Just performed a quick test to understand how it compares to wasm2c.
For this test I took a ~25 MB wasm (WASI) file, clang.wasm
w2c2finishes in 5.1s, RAM usage: 193 Mb. Output: 1.3 GiB file (34.8 Mb zipped)wasm2cfinishes in 1m23s, RAM usage: 1432 Mb. Output: 301 MiB file (22 Mb zipped)
Clearly, speed and RAM usage are really good 🎉 🚀
Wondering if file size can be reduced 🧑🔬
This also brings another question. C compilers are not very efficient when working with huge C files, so monsters like clang.wasm will take ages to compile. This is mentioned in my wasm2native tool: https://github.com/vshymanskyy/wasm2native#todo
One of the possible solutions is to split output into smaller chunks (which also enables parallel build).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels