-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Performance
-
None
-
Fully Compatible
-
Platforms 2018-08-13
Right now, in order to convert a BSON Object into a JSON string, we recursively call the jsonString() function, which creates a new stringstream for every call. Creating a new stringstream every time is quite expensive. We should only create it once and pass it in as an argument for the successive recursive calls to help improve auditing performance.
- is related to
-
SERVER-36576 Coverity analysis defect 104963: Not restoring ostream format
- Closed