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

>> XenoAmess has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   add MIN_SKIP_BUFFER_SIZE
>
> 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?

Maybe the skip buffer in Reader should be looked at too, esp. as it 
couldpotentially grow to 16k bytes. The concern with changing InputStream.skip 
is that there may be a lot more input streams than readers in use, esp. if 
there is an input stream for every socket connection.

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

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

Reply via email to