-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
How to generate wasm file. #320
Comments
I want use it to three.js to improve compute speed. |
Hi @823639792 Sorry for the delay, I’ll investigate this asap, libcglm.a can be used link to existing wasm executable but it seems you need wasm to use with js, an option can be added to generate wasm instead of arhive file, @myfreeer any feedback? Thanks |
For better performance, it is recommanded to use inline functions, which should be faster compared to linking to a library, where compilers generates extra function call overhead. |
@myfreeer many thanks for the point and benchmark. It seems wasm and simd version are similar ( more or less ), but may not reflect all operations due to auto vectorization maybe. I'll take a closer look asap. |
The keyframe-resample-c project contains a mixed workload of |
@myfreeer Wow, thanks! It would be nice to improve and optimize For this issue, are there any benefits ( even a little ) to allow generate .wasm by an build option instead of library for some cases e.g. if someone want to use cglm in JS via wasm like @823639792? |
I made a test that calculates matrix multiplication 5000000 times. It may indeed be necessary to reduce js calls to wasm in order to improve performance. |
When execute command on Windows:
only generate libcglm.a file, no wasm and js file,
so, how to generate wasm file?
The text was updated successfully, but these errors were encountered: