RFR: 8274112: (fc) Tune FileChannel.transferTo()
Alan Bateman
alanb at openjdk.java.net
Wed Sep 22 13:41:56 UTC 2021
On Wed, 22 Sep 2021 01:25:37 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Please consider this patch which would improve the performance of
> `FileChannel.transferTo()` on macOS and Windows.
No objection to try to improve the macOS and Windows cases but I'm concerned about the maintainability. It might be that we have to do significantly refactoring of the FileChannel implementation property support these cases. I think the native methods should be as simple as possible and all the decisions on the dispatching should be in the Java code, not the native code.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5623
More information about the nio-dev
mailing list