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

Use prefix-less prepend methods directly to reduce branches in String concat expressions

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • None
    • core-libs
    • None
    • b21

    Description

      Binding null values to String concat prependers means the JIT sometimes generate suboptimal code. By disallowing null (and empty) values in the argument + prefix prepender and use argument-only prependers directly for null and empty we reduce branches, simplify the JITs work and get more consistent performance on some microbenchmarks, for example BigDecimals.testSmallToEng added by JDK-8315585

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: