Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-14937

Give BSONObj C++11 move semantics

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.6
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible

      We use BSONObjs as values, and frequently create them as temporaries. Providing move semantics for them when in C++11 mode should allow the compiler to elide some atomic operations, offering a small performance gain.

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: