|
|
Log in / Subscribe / Register

Alternatives to Python

Alternatives to Python

Posted Jul 15, 2025 9:53 UTC (Tue) by farnz (subscriber, #17727)
In reply to: Exciting changes for python by mb
Parent article: Following up on the Python JIT

One thing I've done in the past, with PyCXX when I used C++ and PyO3 now that I use Rust most of the time is to rewrite the "critical path" code from Python into something more amenable to high performance.

The core idea is to use cProfile to find the bits of Python code that are bottlenecking you, then work out what architecture changes are needed to move the bottleneck code into a different language - which, of course, can include moving a chunk of non-bottleneck code across, too - leaving just glue code behind in Python.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds