As a possible optimization, Log<>::vwrite could check the format string argument for the trivial case of "%s", where just a buffer-size-limited copy of the first format argument to the buffer is needed. This would save a trip through log_vsnprintf.
outputStream::do_vsnprintf has had a similar fast-path optimization for a very long time.
outputStream::do_vsnprintf has had a similar fast-path optimization for a very long time.
- relates to
-
JDK-8146793 logStream::write re-formats string
-
- Resolved
-