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

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

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: