-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Internal Client
-
None
The overload of BSONObjBuilder::append that takes a std::string as its second argument takes the string by value, forcing a needless copy.
https://github.com/mongodb/mongo/blob/master/bson/bsonobjbuilder.h#L379
The string should be passed by const&.