RFR: 8378698: Optimize Base64.Encoder#encodeToString

Viktor Klang vklang at openjdk.org
Thu Feb 26 10:20:44 UTC 2026


On Wed, 25 Feb 2026 15:37:02 GMT, Patrick Strawderman <duke at openjdk.org> wrote:

> Avoid a byte array copy in encodeToString by using JavaLangAccess#uncheckedNewStringWithLatin1Bytes

Seconding Alan's sentiment here, contributing performance improvements without validation data is inadvisable.

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

PR Comment: https://git.openjdk.org/jdk/pull/29920#issuecomment-3965614026


More information about the core-libs-dev mailing list