-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
The summary states the goal. PyMongo's pure python BSON module is slow. This hasn't historically been a huge problem since most users have taken advantage of _cbson to (dramatically) improve performance. The popularity of pypy and (to a much lesser extent) Jython means we have to provide better pure python performance.
The primary issue is memory copies serializing to BSON and splitting strings decoding back to Python dicts. To solve these problems we will probably try a few different approaches using cStringIO/BytesIO and/or list comprehensions with generators. We will also investigate the newer buffer protocol but that isn't supported everywhere people want to use PyMongo.
- related to
-
PYTHON-283 Unify Invalid BSON reporting in pure Python and C BSON decoders.
- Closed