Rust Extension for the Python Driver
summary
Rust extension for the Python driver replaces the pure‑Python PackStream serializer/deserializer with native Rust encoding and decoding, built with Maturin binding and cross‑compiled CI, running the same driver test suite plus extra injection tests. Benchmarks show about 4× write speedups and up to 9× read speedups on wide records while never regressing, and prebuilt precompiled wheels are provided so no code changes are needed—install the neo4j‑rust‑x package or build from source if your platform lacks a wheel.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 0:31Motivation for Rust
- 2:01Pack Stream Protocol
- 3:27Choosing Rust over alternatives
- 4:12Proof of concept
- 4:55Productizing the extension
- 5:57Benchmarking approach
- 7:03Writing performance results
- 8:05Reading performance results
- 9:08How to get the extension
- 10:57Installation guide
- 11:59Compatibility notes
- 12:19Conclusion and next steps
related talks
31mPumping up Python modules using Rust
36mPumping up Python modules using Rust
34mRust for the Python dev
40mNine Rules for Writing Python Extensions in Rust
44mDo Pythons Rust? How we used PyO3 to build a Python Stream Processor w/ a Rust Heart
46mPython + Rust = ?
21mExtending the horizons of R with Rust
36mPolishing Python: Preventing Performance Corrosion with Rust
