Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-871

Support serializing directly to BSON bytes

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • Affects Version/s: None
    • Component/s: 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@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: