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

Optimize String.format for simple specifiers

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      String.format using only a combination of simple specifiers, such as %s, %d etc are a common occurrence. A naive parser that avoids use of the regex for such simple format strings can significantly help performance.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              redestad Claes Redestad
              Reporter:
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: