The rest is not a fair comparison, because it rewrites the used libraries, not the application code.
You can always speed up an application if you rewrite the used libraries to match your specific use case.
You can always speed up an application if you rewrite the used libraries to match your specific use case.
"That Rust library will be faster than the corresponding python library" is a useful thing to know here.
So much faster that the allocations for the result will probably be the bottleneck.