Replies: 2 comments
-
RUN-31 What's the best way to performantly have parallelized calls into a WASM module? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@john01dav an
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a high performance program which needs to load plugins. I would like to use Rust for plugins, and load them via WASM. But, I need to be able to saturate all CPU cores with the WASM code in the same module (the problem is almost embarrassingly parallel). This poses a problem since each WASM function call requires a &mut Store, so I can't use the same Store across threads. I could create a separate Instance and Store for each thread, but then the static state in each plugin is not consistent which is of course not ideal for the programmers of those plugins.
Is there some established way of doing this without the aforementioned problems?
Beta Was this translation helpful? Give feedback.
All reactions