Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1375

Replace more bson_copy_to calls with bson_reserve_buffer

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: libmongoc, Performance

      There are more opportunities to avoid copying replies, beyond CDRIVER-1215. E.g., mongoc_collection_find_and_modify_with_opts copies its reply to the caller-supplied bson_t pointer. Instead it could reserve space in the caller-supplied bson_t and read the server reply directly into it without copying.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: