RFR: 8272297: FileInputStream should override transferTo() for better performance [v4]
Alan Bateman
alanb at openjdk.java.net
Fri Aug 13 19:26:32 UTC 2021
On Fri, 13 Aug 2021 19:20:48 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Please consider this request to add an override `java.io.FileInputStream.transferTo(OutputStream)` with improved performance if the parameter is a `FileOutputStream`.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>
> 8272297: Remove unneeded check of position and couunt
src/java.base/share/classes/java/io/FileInputStream.java line 373:
> 371: }
> 372: return transferred + super.transferTo(out);
> 373: }
Good, I think this version is right.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5097
More information about the core-libs-dev
mailing list