Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-346

A faster and more memory efficient pure python BSON module.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • 3.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              bernie@mongodb.com Bernie Hackett
              bernie@mongodb.com Bernie Hackett
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: