RFR: 8273100: Improve AbstractStringBuilder.append(String) when using CompactStrings [v3]
Claes Redestad
redestad at openjdk.java.net
Mon Aug 30 13:26:28 UTC 2021
On Mon, 30 Aug 2021 13:15:20 GMT, Сергей Цыпанов <github.com+10835776+stsypanov at openjdk.org> wrote:
> Hi, just curious how have you found out that the code should be extracted into a separate methods? Profiler?
I saw that `String::length` calls appeared more than once with async-profiler, then did some experiments to see if manually inlining so that only one call was needed helped (and it did).
-------------
PR: https://git.openjdk.java.net/jdk/pull/5291
More information about the core-libs-dev
mailing list