Support serializing directly to BSON bytes

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Unknown
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      During insertion operations, a large amount of time is spent serializing the input T values to raw BSON for sending to the server. Currently, the driver will first serialize the T to a bson::Document, and then it will encode that raw BSON. If we could skip the intermediate step in bson::Document and go straight from T to BSON bytes, it could significantly improve performance.

            Assignee:
            Patrick Freed
            Reporter:
            Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: