-
Notifications
You must be signed in to change notification settings - Fork 59
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
feat: enable SIMD #148
base: main
Are you sure you want to change the base?
feat: enable SIMD #148
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. |
Here's a nice article: Authoring a SIMD enhanced Wasm library with Rust