-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Such a design creates numerous superfluous temporaries. Even with short-string optimizations, eventually the composition of such temporaries creates temporaries whose length exceeds that of of the short-string space. This starts to put undue pressure on the allocator.
In C++ the right equivalent to `toString()` for output composition is the `std::ostream &operator << ( std::ostream &, const T & )` overload which is ADL-found at use. If temporary strings are needed, `std::stringstream` can be used. Additionally, `str::stream()` exists in our code base.
- related to
-
SERVER-29360 Add operator<< to Date_t class
- Closed