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

Support zero-copy deserialization in cursors

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

      We should expose API that allows users to borrow from the next document in a cursor's result set, enabling borrowed deserialization. This could lead to performance gains when deserializing large documents.

      Originally, this work was meant to be done as part of RUST-1039, but it was bumped out due to benchmarks showing the gains weren't significant next to the time spent doing I/O. This has been revisited, and for result sets that are large and have a lot of strings/binary data, borrowed deserialization can make a big difference.

            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: