RFR: 8284638: store skip buffers in InputStream Object [v4]

XenoAmess duke at openjdk.java.net
Thu Apr 14 17:21:30 UTC 2022


On Wed, 13 Apr 2022 22:53:11 GMT, liach <duke at openjdk.java.net> wrote:

> I suggest we actually write into the byte array to better simulate overheads (maybe by generating a number with `ThreadLocalRandom`).

This sounds reasonable, as each InputStream implementation always need to copy it.

> To simulate overhead on each read call, you can perform some extra activity consumed by the blackhole (possibly pass jmh blackhole through input stream constructor)

This one not, as each InputStream implementation have different read cost, and there is no way to simulate a good value.

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

PR: https://git.openjdk.java.net/jdk/pull/5872


More information about the core-libs-dev mailing list