VOOZH about

URL: https://thenewstack.io/rust-pythons-new-performance-engine/

⇱ Rust: Python's New Performance Engine - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2025-08-19 12:00:46
Rust: Python's New Performance Engine
Programming Languages / Python / Rust

Rust: Python’s New Performance Engine

Rust usage for Python extensions surged 22% in one year as developers choose memory safety and C-level performance over traditional approaches.
Aug 19th, 2025 12:00pm by Darryl K. Taft
👁 Featued image for: Rust: Python’s New Performance Engine
Photo by Andréas BRUN on Unsplash.

Python developers have always faced a trade-off: write elegant, readable code or go for high performance. For a long time, this meant reaching for C extensions when speed mattered. But Rust has emerged as Python’s performance co-pilot.

The Rust Revolution in Python

According to the JetBrains State of Python 2025 report, Rust usage for Python binary extensions jumped from 27% to 33% — a 22% increase in just one year. This represents a key shift in how the Python ecosystem approaches performance optimization.

In a blog post about the study — which was based on a survey of 30,000 developers — Michael Kennedy, the founder of Talk Python and a Python Software Foundation Fellow, wrote that “At the 2025 Python Language Summit, core developers shared an eye-opening statistic: ‘Somewhere between one-quarter and one-third of all native code being uploaded to PyPI for new projects uses Rust.’ This means that when developers start new performance-critical Python projects today, they’re increasingly choosing Rust over traditional C extensions.”

Why Rust Is Winning Over C

Among the key reasons for Rust’s rapid adoption in the Python ecosystem is performance. Rust delivers C-level performance while maintaining Python’s ease of integration. Rust’s zero-cost abstractions and efficient memory management make it ideal for performance-critical components.

Rust also provides memory safety. Unlike C, Rust prevents common programming errors like buffer overflows and memory leaks at compile time. This makes it dramatically safer for extending Python without introducing security vulnerabilities or crashes.

In addition, Rust offers a high-quality developer experience with its modern toolchain, excellent error messages, and package manager (Cargo). It provides a better development experience compared to the often painful process of writing and debugging C extensions.

Real-World Success Stories

The Python ecosystem already showcases several high-profile Rust success stories:

  • Polars has revolutionized data science with DataFrame operations that often outperform Pandas by orders of magnitude. Built in Rust, it provides a Python API that feels natural while delivering unprecedented speed for data processing tasks.
  • Pydantic V2 rewrote its core validation engine in Rust, resulting in dramatic performance improvements for data validation and serialization across virtually every Python discipline — from web APIs to machine learning pipelines.
  • FastAPI’s ecosystem increasingly relies on Rust-based components. The survey showed that FastAPI usage jumped from 29% to 38% (a 30% increase), partly driven by its async-friendly architecture that pairs well with Rust-based server components.

The Infrastructure Revolution

Rust’s influence extends beyond individual packages to Python’s core infrastructure. Traditional Web Server Gateway Interface (WSGI) servers are giving way to Asynchronous Server Gateway Interface (ASGI) compatible alternatives, many of which are built with Rust. Kennedy cited Granian, a new Rust-based application server, as gaining significant traction. He also singled out Uvicorn, which, while Python-based, increasingly integrates with Rust components

Next-Generation Tooling

Kennedy also noted that two new Python type checkers have emerged, both written in Rust. One is ty from Astral, which is described as “an extremely fast Python type checker and language server.” The other is Pyrefly from Meta, which is a high-performance alternative to traditional type checkers like mypy.

“They are both vying to be the next generation tooling for type checking. Moreover, both of these tools provide extremely fast language server protocols (LSPs), Kennedy wrote.

“Notice anything similar? They are both written in Rust, backing up the previous claim that ‘Rust has become Python’s performance co-pilot,’” he added.

The Business Case

Meanwhile, for enterprises, Rust-enhanced Python delivers tangible benefits. The performance improvements alone can translate into cost savings, including reduced cloud compute costs and lower memory usage. Moreover, faster response times improve customer satisfaction and more efficient code reduces energy consumption, Kennedy said.

Advice for Python Developers

Kennedy advised Python developers to learn to read Rust.

Python developers should consider learning the basics of Rust, not to replace Python, but to complement it.

“As I discussed in our analysis, Rust is becoming increasingly important in the most significant portions of the Python ecosystem,” Kennedy wrote. “I definitely don’t recommend that you become a Rust developer instead of a Pythonista, but being able to read basic Rust so that you understand what the libraries you’re consuming are doing will be a good skill to have.”

Kennedy also advised Python developers to embrace Rust-enhanced libraries. When choosing between similar packages, consider those with Rust cores — they often provide superior performance without sacrificing Python’s ease of use, he said.

And Python devs also should consider Rust for extensions, Kennedy advises. Python developers building performance-critical Python extensions should evaluate Rust as their implementation language instead of defaulting to C, he indicated.

The Future Is Hybrid

Overall, Rust is not replacing Python — it’s supercharging it. This hybrid approach gives developers the best of both worlds: Python’s expressiveness and ecosystem for application logic, with Rust’s performance for computationally intensive components, the report expresses.

TRENDING STORIES
Darryl K. Taft covers DevOps, software development tools and developer-related issues from his office in the Baltimore area. He has more than 25 years of experience in the business and is always looking for the next scoop. He has worked...
Read more from Darryl K. Taft
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Real.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.