3 ms·
I think your issue has nothing to do with rust, and is all about WASM being executed on the main event loop thread. Rust can't magically create parallelism (th
by j-pb 4y ago
I think your issue has nothing to do with rust, and is all about WASM being executed on the main event loop thread.
Rust can't magically create parallelism (this is not even an concurrency thing which is what async provides) where there is none.
- est31 4y agoYeah you'd have the same issue if you ran the expensive computation in Javascript. What you need is worker threads, and yes, you can't share objects with worker threads easily.