Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
I compiled this project with |
|
Any chance this could be merged and released? |
|
@khiemtong Thanks for your interest in resvg-js. In the long run, this feature will definitely be released. However, given that this increases the size of the wasm file, a separate npm package may need to be released. These tweaks would require some work, which I don't have time for at the moment. |
539accc to
6d3968a
Compare
|
While the package size would increase - the compiler should be able to strip out the dependencies (wasm files) that are not required, right? (I'm using it in an Angular App and the wasm file is not compiled into the bundle anyways as I'm serving it separately). However the performance gains by using SIMD are enormous. I'm seeing a 2x/3x speedup for my use-case. |
15dd771 to
34c1451
Compare
|
It seems wasm SIMD is supported pretty much everywhere nowadays, see https://caniuse.com/wasm-simd Maybe instead of duplicating the library you could just unconditionally enable SIMD. |
|
@linkmauve Thank you for your attention. I will consider merging this PR as soon as possible. |
|
Consider Relaxed SIMD: rust-lang/rust#117468 |
Here's a nice article: Authoring a SIMD enhanced Wasm library with Rust