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

Claes Redestad redestad at openjdk.org
Thu Feb 15 10:38:06 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

After some deliberation I decided to back out the proposed changes to `DataInputStream`. It sees less of a speed-up in my tests thanks to an existing simple fast-path - and there are paths through the code that are not covered by these microbenchmarks.

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

PR Comment: https://git.openjdk.org/jdk/pull/17734#issuecomment-1945796077


More information about the nio-dev mailing list