I doubt people will convert your code to C+/Rust for free, so i suggest you check these options,
1. Use PyPy (
https://www.pypy.org) which improve your code performance without change single line of your code.
2. Use another compiler such as Numba (
https://numba.pydata.org/). I never tried Numba though since you need to modify your code and read the documentation.
PYPY, I've already tried the performance drops or is the same
Numba, does not have time to accelerate, and therefore the performance drops.
there is no way out yet.
only GPU left or C ++ insert