Replies: 1 comment
-
It sounds like you're asking whether PyO3 can let you run multiple copies of a Python function in parallel. The answer, is that just like in Python, you would have to use subprocesses with each running their own interpreter (e.g. via What PyO3 can do is let you write a single Python function which has a parallel implementation in Rust, such as this example. If it's a long-running algorithm then you can also use |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Just learning pyo3 to wrap some python function and run in rust. Assume I have 10 python function use same data source, could I make them do the calculation in parallelism by pyo3?
Beta Was this translation helpful? Give feedback.
All reactions