RFR: 8278166: java/nio/channels/Channels/TransferTo.java timed out
Brian Burkhalter
bpb at openjdk.java.net
Mon Dec 6 16:32:17 UTC 2021
On Sat, 4 Dec 2021 06:50:12 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> I shall clean up the constants in the next revision.
>>
>> A crude measurement showed that the execution time of `testMoreThanTwoGB()` was cut in half by this change. This sub-test is the slowest `@Test` in the test.
>
> The general approach looks okay but the RAF to open/setLength/close is not needed. Instead change the FC.open to use WRITE and use fc.position(initLen) to set the initial position before writing.
Of course; will do.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6707
More information about the nio-dev
mailing list