Replace more bson_copy_to calls with bson_reserve_buffer

XMLWordPrintableJSON

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

      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
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: