RFR: 8278268 - (ch) InputStream returned by Channels.newInputStream should have fast path for FileChannel targets [v15]

Markus KARG duke at openjdk.org
Sun Dec 11 15:27:40 UTC 2022


On Mon, 10 Jan 2022 08:57:50 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> @AlanBateman @LanceAndersen Back to the original thread of this PR, are there more change requests or is it fine for merging?
>
> @mkarg Do you have any benchmarks/results for the change? I'm asking because FileChannel transferTo is implemented (where possible) on sendfile/equivalent so fast for the file -> socket and file -> file cases. The changes in this PR make use of FileChannel transferFrom so may not be significantly better than the default implementation.

@AlanBateman @LanceAndersen Kindly re-requesting review of this PR. Thanks! :-)

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

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


More information about the nio-dev mailing list