arXiv · 2507.00264
Rust vs. C for Python Libraries: Evaluating Rust-Compatible Bindings Toolchains
Abstract
The Python programming language is best known for its syntax and scientific libraries, but it is also notorious for its slow interpreter. Optimizing critical sections in Python entails special knowledge of the binary interactions between programming languages, and can be cumbersome to interface manually, with implementers often resorting to convoluted third-party libraries. This comparative study evaluates the performance and ease of use of the PyO3 Python bindings toolchain for Rust against ctypes and cffi. By using Rust tooling developed for Python, we can achieve state-of-the-art performance with no concern for API compatibility.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Isabella Basso do Amaral, Renato Cordeiro Ferreira, Alfredo Goldman. 2025-06-30. Rust vs. C for Python Libraries: Evaluating Rust-Compatible Bindings Toolchains. https://arxiv.org/abs/2507.00264
Cite the original work for its findings. Save a collection to share your selection of sources.