-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Python Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Context
Our Python C Extension modules are difficult to maintain and require vigilance to avoid memory leaks. We should investigate using Rust for the existing C extensions. We could wrap the Rust BSON crate for the heavy lifting in our BSON code, and do a straight port of our cmessagemodule code.
In the spike we would need to wrap a subset of the BSON types and compare the encode/decode performance of the Rust version to the CPython version.
Definition of done
Determine the feasibility of a full port.
Pitfalls
Users would need a rust toolchain to build our C extensions on unsupported platforms.