Running Python code in parallel from Rust with rust-cpython
问题 I'm trying to speed up a data pipeline using Rust. The pipeline contains bits of Python code that I don't want to modify, so I'm trying to run them as-is from Rust using rust-cpython and multiple threads. However, the performance is not what I expected, it's actually the same as running the python code bits sequentially in a single thread. Reading the documentation, I understand when invoking the following, you actually get a pointer to a single Python interpreter that can only be created