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

XenoAmess duke at openjdk.java.net
Thu Apr 14 16:50:35 UTC 2022


On Thu, 14 Apr 2022 15:36:20 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> Can you summarize the performance results and implications. Including the whole jmh run isn't necessary.

@RogerRiggs

In short, making such a cache can help performance, and the larger int skip length people call `skip()`, the larger difference.

And adding SoftReference mechanism have a little acceptable performance cost.

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

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


More information about the core-libs-dev mailing list