RFR: 8305744: (ch) InputStream returned by Channels.newInputStream should have fast path for ReadbleByteChannel/WritableByteChannel [v3]
Markus KARG
duke at openjdk.org
Sat Jun 17 11:41:08 UTC 2023
On Sat, 17 Jun 2023 02:14:17 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> The above benchmark method includes the construction of 6 objects in the measurement. I think it would be more representative of the effect of the change to do something like this:
Correct, the benchmark could be tweaked to proof better results, but as I said in my original posting of that code: "I measured the code that might benefit *the least* from the optimization", as my claim was: It does *never* do harm, so *why not* doing it. :-)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13387#issuecomment-1595719668
More information about the nio-dev
mailing list