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

Avoid going through hex string when deserializing ObjectId from raw bytes

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • bson-2.0.0-beta.3
    • Affects Version/s: None
    • Component/s: BSON
    • None

      The raw BSON deserializer currently represents an ObjectId via its extended JSON format, which formats the bytes as a hex-encoded string. We could improve performance by instead representing the bytes as a borrowed buffer, similar to what we do for generic subtype Binary. We'll need to keep using a signifier though to differentiate ObjectId from Binary, perhaps $oidBytes or simply re-use $oid.

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: