RFR: 8336856: Optimize String Concat [v21]

Shaojin Wen duke at openjdk.org
Wed Jul 31 13:56:10 UTC 2024


> The current implementation of StringConcat is to mix the coder and length into a long. This operation will have some overhead for int/long/boolean types. We can separate the calculation of the coder from the calculation of the length, which can improve the performance in the scenario of concat int/long/boolean.
> 
> This idea comes from the suggestion of @l4es in the discussion of PR https://github.com/openjdk/jdk/pull/20253#issuecomment-2240412866

Shaojin Wen has updated the pull request incrementally with three additional commits since the last revision:

 - Merge pull request #8 from cl4es/pr_20273_fixes
   
   Simplify, erase, remove ClassOption.STRONG
 - Merged
 - Simplify, remove STRONG relationship, erase argument types, repurpose argument slots

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/20273/files
  - new: https://git.openjdk.org/jdk/pull/20273/files/be9952c5..f897301c

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20273&range=20
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20273&range=19-20

  Stats: 99 lines in 1 file changed: 36 ins; 58 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/20273.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20273/head:pull/20273

PR: https://git.openjdk.org/jdk/pull/20273


More information about the core-libs-dev mailing list