You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for some reason, I have to split the origin main.wasm to main.wasm + side.wasm. And using -s USE_PTHREADS=1 for mutilthread.
createModule
From the phenomenon point of view, the dynamic link version is slower than the non-dynamic link version by 200ms+ in the createModule process.
dynamiclink:
normal(non-dynamic link):
in my analyse, these mainly because of LDSO.init(); loadDylibs();, for load-time linking,parsing dynamic lib and exportting symbols map
At the same time, dynamic linking is 200ms+ slower than normal when each thread starts. I guess this is partly because each thread needs to synchronize function symbols from the main thread.
compare to non-dynamic link:
Since these performance degradations are caused by the dynamic link mechanism, it is difficult for users to optimize it. Please give me some feasible suggestions. Thank you.
The text was updated successfully, but these errors were encountered:
Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.54 (48216dc455f2ac2670ec4f8a32f293b62a730080) clang version 19.0.0git (https://github.com/llvm/llvm-project e769fb8699e3fa8e40623764f7713bfc783b0330) Target: wasm32-unknown-emscripten Thread model: posix InstalledDir: /home/compiler/emsdk/upstream/bin
Full link command and output with
-v
appended:for some reason, I have to split the origin
main.wasm
tomain.wasm
+side.wasm
. And using-s USE_PTHREADS=1
for mutilthread.createModule
From the phenomenon point of view, the dynamic link version is slower than the non-dynamic link version by 200ms+ in the createModule process.
dynamiclink:
normal(non-dynamic link):
in my analyse, these mainly because of
LDSO.init(); loadDylibs();
, for load-time linking,parsing dynamic lib and exportting symbols mapstart thread
At the same time, dynamic linking is 200ms+ slower than normal when each thread starts. I guess this is partly because each thread needs to synchronize function symbols from the main thread.
compare to non-dynamic link:
Since these performance degradations are caused by the dynamic link mechanism, it is difficult for users to optimize it. Please give me some feasible suggestions. Thank you.
The text was updated successfully, but these errors were encountered: