Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-224

Avoid roundtripping values through Swift when copying values from one document to another

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0-rc1
    • Component/s: None
    • Labels:
      None

      Description

      As described in CDRIVER-2829, we cannot use bson_copy_to_excluding in its current form because we can't call variadic C functions from Swift.

      CDRIVER-2829 will allow us to use a va_list (which we can create from Swift) to supply the variable-length list of fields to exclude. 

      We will be able to use this in three places to optimize performance when we remove elements from documents, noted by TODOS:

      • DocumentIterator.subsequence
      • Document.setValue
      • Document.subscript

      doing this will require dropping libmongoc < 1.14.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              james.heppenstall James Heppenstall
              Reporter:
              kaitlin.mahar Kaitlin Mahar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: