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

Give BSONObj C++11 move semantics

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.7.6
    • None
    • Internal Code
    • None
    • Fully Compatible

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: