RFR: 8298639: Perform I/O operations in bulk for RandomAccessFile [v2]
Sergey Tsypanov
stsypanov at openjdk.org
Tue Dec 13 10:08:52 UTC 2022
On Tue, 13 Dec 2022 09:27:24 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> This PR suggests improving performance for read and write operations for the longer primitives in `RandomAccessFile`.
>>
>> These improvements would also propagate to other JDK classes relying on these improved `RandomAccessFile` operations.
>
> Per Minborg has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits:
>
> - Merge master
> - Perform I/O operations in bulk for RandomAccessFile
src/java.base/share/classes/java/io/RandomAccessFile.java line 930:
> 928: public final long readLong() throws IOException {
> 929: readFully(buffer, 0, Long.BYTES);
> 930: return (((long)(buffer[0] ) << 56) +
I think you can use `Bits.getLong()` here
-------------
PR: https://git.openjdk.org/jdk/pull/11644
More information about the core-libs-dev
mailing list