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.
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.
- relates to
-
JDK-8336856 Efficient hidden class-based string concatenation strategy
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/4d597de8
-
Review(master) openjdk/jdk/20675