RFR: 8320971: Use BufferedInputStream.buf directly when param of implTransferTo() is trusted [v17]

Vladimir Sitnikov vsitnikov at openjdk.org
Thu Dec 28 15:09:09 UTC 2023


On Fri, 22 Dec 2023 15:08:33 GMT, Markus KARG <duke at openjdk.org> wrote:

> IMHO the trigger for this PR was sparing time

That is fair. Do you know how one could create a reliable test for performance that would fail without the fix and succeed with the fix?

I think the allocation is a reasonable proxy for the duration in this case, and the allocation is more-or-less easy to measure and test if the JVM supports `getCurrentThreadAllocatedBytes`.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16879#discussion_r1435200386


More information about the core-libs-dev mailing list