-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
bernie@mongodb.com had the idea to re-implement buffer.h in terms of PyByteArray in order to avoid the big memory copy at the end of BSON encoding. The C api methods would return bytearray instead of bytes.
https://docs.python.org/3/c-api/bytearray.html
https://docs.python.org/3/c-api/bytearray.html#c.PyByteArray_Resize
https://docs.python.org/3/c-api/bytearray.html#c.PyByteArray_AsString
- related to
-
INTPYTHON-102 Improve Write Efficiency
- Backlog