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

XenoAmess duke at openjdk.java.net
Wed Apr 13 14:49:27 UTC 2022


On Wed, 13 Apr 2022 14:36:17 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> This change may be problematic for servers with a large number connections and an input stream for each connection. It could add up to 2k to the footprint of each connection when skip is used.

@AlanBateman
You are correct about this. But I wonder if this be a problem, why Reader class can afford store a skip buffer for each Reader.

Is there anything different in the situations about skipBuffer in Reader and InputStream?

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

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


More information about the core-libs-dev mailing list