RFR: 8292698: Improve performance of DataInputStream [v3]

Bernd duke at openjdk.org
Tue Sep 13 20:07:40 UTC 2022


On Thu, 25 Aug 2022 09:25:55 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> > What is wrong with the change?
> 
> You'll need parentheses to make that work, changing it to use '|' would work too.

Does that mean there is no explicit test for DataInputStream endianess (if only accidential tests checking for magic numbers failed.. or where there other failures but you did not mention them).

btw the cleanup looks really good. (shame we have no easy way to stack allocate the scratch byte array)

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

PR: https://git.openjdk.org/jdk/pull/9956


More information about the core-libs-dev mailing list