How should I think about memory efficient concurrent programing when using pyo3? #2403
Replies: 1 comment 2 replies
-
I usually say that the main opportunity PyO3 offers for concurrent programming is that you can have Rust threads running free of the Python GIL, which avoids the need to go for the complexity of Python's When Is there a particular problem you're trying to solve, or topics that you are finding confusing? This is potentially a huge area so it's hard to know what to write for you without some further prompting. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to
pyo3
. I'd like to use it to interpret Python programs that handle their ownmultiprocessing
. I came across this cool discussion today. And, I realized that I should probably have a much better mental model of how memory is used for processes spawned, forked, etc. by Python logic bubble up to memory usage by C and then Rust.Where should I begin?
Keeping track of potential relevant content I've come across thusfar:
Beta Was this translation helpful? Give feedback.
All reactions