RFR: 8300979: Lazily initialize (byte, char)arr in java.io.DataInputStream

Per Minborg pminborg at openjdk.org
Wed Mar 22 10:17:43 UTC 2023


On Tue, 21 Mar 2023 17:27:42 GMT, Eirik Bjorsnos <duke at openjdk.org> wrote:

> Looks like `DataInputStream.readUTF` could benefit from using `JavaLangAccess.countPositives` and return early for the common case that all bytes are ASCII. Food for another PR?

Yep. Please raise an issue with the ideas around this if deemed beneficial.

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

PR Comment: https://git.openjdk.org/jdk/pull/13121#issuecomment-1479275639


More information about the core-libs-dev mailing list