RFR: 8325340: Add ASCII fast-path to Data-/ObjectInputStream.readUTF [v5]

Raffaello Giulietti rgiulietti at openjdk.org
Thu Feb 15 12:03:54 UTC 2024


On Thu, 15 Feb 2024 10:33:07 GMT, Claes Redestad <redestad at openjdk.org> wrote:

>> Adding a fast-path for ASCII-only modified UTF-8 strings deserialied via Data- and ObjectInputStream
>> 
>> Testing: tier1-3
>
> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Revert spurious formatting changes

src/java.base/share/classes/java/io/DataInputStream.java line 574:

> 572:      * @see        java.io.DataInputStream#readUnsignedShort()
> 573:      */
> 574:     public static final String readUTF(DataInput in) throws IOException {

Suggestion:

    public static String readUTF(DataInput in) throws IOException {

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17734#discussion_r1490827814


More information about the core-libs-dev mailing list