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

Optimize String concatenation setup when using primitive operands

XMLWordPrintable

      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.

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: