RFR: 8333893: Optimization for StringBuilder append boolean & null [v19]

Emanuel Peter epeter at openjdk.org
Fri Oct 18 08:09:32 UTC 2024


On Mon, 23 Sep 2024 23:23:12 GMT, Shaojin Wen <swen at openjdk.org> wrote:

>> After PR https://github.com/openjdk/jdk/pull/16245, C2 optimizes stores into primitive arrays by combining values ​​into larger stores.
>> 
>> This PR rewrites the code of appendNull and append(boolean) methods so that these two methods can be optimized by C2.
>
> Shaojin Wen has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix build error

Ok, now I have a patch out for review: https://github.com/openjdk/jdk/pull/19970

Can you see if this speeds up the `PutBytesTest` benchmark for you?

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

PR Comment: https://git.openjdk.org/jdk/pull/19626#issuecomment-2421773875


More information about the core-libs-dev mailing list