Skip to content
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

Cannot be used for WASM because of multithreading? #114

Closed
liafuzho opened this issue Feb 12, 2022 · 3 comments
Closed

Cannot be used for WASM because of multithreading? #114

liafuzho opened this issue Feb 12, 2022 · 3 comments

Comments

@liafuzho
Copy link

When I call "create_image" function in WASM It's frustrating to get an error and exit.

@kornelski
Copy link
Owner

Unfortunately

In browsers that support threads, maybe this will work: https://github.com/GoogleChromeLabs/wasm-bindgen-rayon

@kornelski
Copy link
Owner

Done in 3.2.0. Disable the threads feature.

@RReverser
Copy link

In browsers that support threads, maybe this will work: https://github.com/GoogleChromeLabs/wasm-bindgen-rayon

FWIW this also should work indeed and usually provides noticeable perf improvements, like multithreading on any other platform. Although it does require a bit of fiddling with configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants