RFR: 8378698: Optimize Base64.Encoder#encodeToString [v3]
Chen Liang
liach at openjdk.org
Fri Feb 27 00:57:55 UTC 2026
On Fri, 27 Feb 2026 00:32:07 GMT, Patrick Strawderman <duke at openjdk.org> wrote:
>> Avoid a byte array copy in encodeToString by using JavaLangAccess#uncheckedNewStringWithLatin1Bytes
>
> Patrick Strawderman has updated the pull request incrementally with one additional commit since the last revision:
>
> Reduce warmup and measurement iterations for benchmark
test/micro/org/openjdk/bench/java/util/Base64EncodeToString.java line 9:
> 7: * published by the Free Software Foundation. Oracle designates this
> 8: * particular file as subject to the "Classpath" exception as provided
> 9: * by Oracle in the LICENSE file that accompanied this code.
Suggestion:
* published by the Free Software Foundation.
Note that tests do not have this exception.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29920#discussion_r2861996941
More information about the core-libs-dev
mailing list