[SERVER-14937] Give BSONObj C++11 move semantics Created: 18/Aug/14  Updated: 08/Sep/14  Resolved: 19/Aug/14

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 2.7.6

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 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.



 Comments   
Comment by Githook User [ 19/Aug/14 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-14937 Give BSONObj move semantics in C++11 mode
Branch: master
https://github.com/mongodb/mongo/commit/cc54386515d70ac012910b969fc893aa3282e16b

Generated at Thu Feb 08 03:36:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.