On Wed, 25 Feb 2026 15:37:02 GMT, Patrick Strawderman <[email protected]> wrote:
> Avoid a byte array copy in encodeToString by using > JavaLangAccess#uncheckedNewStringWithLatin1Bytes Hmm, I checked the code of that deprecated constructor. If the compiler can recognize `count == ascii.length` then it should be able to fold this code; maybe the compiler is too stupid. Have you verified the performance results in a benchmark? ------------- PR Comment: https://git.openjdk.org/jdk/pull/29920#issuecomment-3960288227
