Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8147866

Log<>::vwrite could fast-path trivial fmt of "%s"

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 10
    • 9
    • hotspot
    • svc
    • generic
    • generic

      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.

            rprotacio Rachel Protacio (Inactive)
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: