RFR: 8300236: Use VarHandle access in Data(Input | Output)Stream classes [v8]
altrisi
duke at openjdk.org
Wed Jan 25 18:19:52 UTC 2023
On Tue, 24 Jan 2023 12:44:17 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> This PR proposes using a performance optimization using a new supported API for operations similar to those found in `java.io.Bits`
>
> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>
> Update RAF
Not fully related to this PR, but is there a reason that functionality was exposed as a VarHandle factory instead of just methods that do that, taking an array and an index?
These byte array handles don't seem to have much state in them other than endianness, that could just be passed in (improving `8300235` further), removing the need here for a class holding them and the indirection.
-------------
PR: https://git.openjdk.org/jdk/pull/12076
More information about the core-libs-dev
mailing list