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

StringConcatFactory hardCoded string concatenation strategy

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • core-libs
    • None
    • b15

      PR #20273 uses non-static constants/length/coder in ConcatBase, which can solve the reuse problem well. However, when the number of parameters is greater than inlineThreshold, the performance will regress.

      When the number of parameters is large, the possibility of reuse will be lower, so we can use the static concat method and write the length and coder directly into the bytecode to solve the performance regression problem.

            swen Shaojin Wen
            swen Shaojin Wen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: