Company
Date Published
Author
Rouven Bauer
Word count
1169
Language
English
Hacker News points
None

Summary

The Neo4j Python Driver has been improved with Rust extensions, offering significant performance improvements. The new driver is up to 10 times faster than the previous version and is available on GitHub and PyPI. The performance boost was achieved by rewriting a hot path in the driver code that involved encoding and decoding between Python types and the binary protocol called PackStream. Benchmarking tests were conducted using various workloads, including sending much data and receiving little data, as well as sending little data and receiving much data. The results show a speedup of anywhere between 1.16 and 4.26, with more data transmission resulting in larger speedups. The new driver is designed to be flexible and can be used for various use cases, including number-crunching tasks. However, it's essential to note that the border between Rust and Python lies in the implementation detail, which may affect users relying on driver internals.