[wasm] AOT huge build time #9972
-
I ask here this first... and maybe at emscripten? I creating a wasm head for an application, configure to AOT, the build time becomes huge, namely an hour. I could pinpoint the main issue, that wasm-ld runs for forty-fifty minutes. Is there a way to run wasm-ld multithreaded? (( I applied some switches |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for the report. You can find documentation about this here. Indeed, the wasm linker is particularly slow (there's no way to make it run multi-threaded that I know of), and you can adjust the optimizations, or use profiled AOT, which reduces the amount of AOTed code. Make sure to have the IL Linker enabled as well, otherwise you'll have a lot of unused code being compiled. |
Beta Was this translation helpful? Give feedback.
Thanks for the report. You can find documentation about this here. Indeed, the wasm linker is particularly slow (there's no way to make it run multi-threaded that I know of), and you can adjust the optimizations, or use profiled AOT, which reduces the amount of AOTed code.
Make sure to have the IL Linker enabled as well, otherwise you'll have a lot of unused code being compiled.