fast-anything automatically ports only your slowest Python functions to Rust with AI, verifies correctness, and swaps them in with one command.
By Meng Li
Published: 2026-11-26
URL: https://pythonlibraries.substack.com/p/fast-anything-change-5-of-your-code
We all know that Go and Rust are among the best-performing tech stacks. But on the backend, apart from Java, Python is the most widely used language, and even more so in the AI era. Its performance often falls short of the best.
So do you rewrite everything? Rewrite the whole Python service in Rust? Replace an entire Node.js project with Go?
I’ve seen too many teams make that call. Some spent three months moving a core service from Python to Rust. Compile times went from a few seconds to a minute, the target/ directory ate 15GB of disk, and reviewers nearly wept over the PRs.
The result? After a week in production, they found the real bottleneck was a single dictionary-lookup function. Rewriting just that one function in Rust with PyO3 would have given almost the same result as the full rewrite.
