stephen-webb commented on PR #288:
URL: https://github.com/apache/logging-log4cxx/pull/288#issuecomment-1807364902

   I suggest the following:
   `                       const static std::basic_ostringstream<T> 
initialState;
                           thread_local static std::basic_ostringstream<T> 
sStream;
                           this->stream = &sStream;
                           this->stream->clear();
                           this->stream->precision(initialState.precision());
                           this->stream->setf(initialState.flags(), 
~initialState.flags());
                           this->stream->fill(initialState.fill());
    which has this performance:
   `Logging int value with std::ostream                                   684 
ns          684 ns       982152`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to