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

Optimize String concatenation setup when using primitive operands

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10, 11, 12
    • Fix Version/s: 12
    • Component/s: core-libs

      Description

      The current default String concatenation strategy adds in MHs to calculate the expected String coder even for primitives that by definition won't mutate the coder value.

      Avoiding calculating and folding in a new coder value and instead re-using the current coder value reduces the number of intermediate MHs generated for string concatenation expressions with one or more primitive arguments, while not affecting peak performance characteristics negatively.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: