[CXX-902] Reduce flushes on output operations... Created: 27/Apr/16  Updated: 19/Sep/16  Resolved: 28/Apr/16

Status: Closed
Project: C++ Driver
Component/s: Performance
Affects Version/s: None
Fix Version/s: 3.0.2

Type: Improvement Priority: Minor - P4
Reporter: Rico Antonio Felix [X] Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Any && All



 Description   

According to the [C++ Core Guidelines](https://github.com/isocpp/CppCoreGuidelines) @ `SL.50`, the use of `std::endl` causes performance degradation and should be replaced with '\n'...



 Comments   
Comment by Andrew Morrow (Inactive) [ 28/Apr/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/482

Comment by Githook User [ 28/Apr/16 ]

Author:

{u'username': u'RicoAntonioFelix', u'name': u'RicoAntonioFelix', u'email': u'ricoantoniofelix@yahoo.com'}

Message: CXX-902 Reduce flushes on output operations...
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/ca463062a5c61b47ea9c1a0d6c11e0df46e674f0

Comment by Andrew Morrow (Inactive) [ 27/Apr/16 ]

We appear to only reference endl in one file in bsoncxx/src/json.cpp, and the fixes look trivial. I suggest that you send us a pull request.

Generated at Wed Feb 07 22:00:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.