Details
-
Improvement
-
Resolution: Done
-
Minor - P4
-
None
-
None
Description
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&.