RFR: 8273100: Improve AbstractStringBuilder.append(String) when using CompactStrings [v3]

Сергей Цыпанов github.com+10835776+stsypanov at openjdk.java.net
Mon Aug 30 13:18:27 UTC 2021


On Mon, 30 Aug 2021 11:49:49 GMT, Claes Redestad <redestad at openjdk.org> wrote:

>> Refactor to improve inlining, which helps some microbenchmarks exer StringBuilder.append(String)
>
> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Simplify and call getBytes(String, int, byte) when possible

Hi, just curious how have you found out that the code should be extracted into a separate methods? Profiler?

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

PR: https://git.openjdk.java.net/jdk/pull/5291


More information about the core-libs-dev mailing list