RFR: 8284638: store skip buffers in InputStream Object [v15]
Sergey Kuksenko
skuksenko at openjdk.java.net
Wed May 25 23:26:55 UTC 2022
On Tue, 24 May 2022 20:40:51 GMT, XenoAmess <duke at openjdk.java.net> wrote:
>> @jmehrens what about this then?
>> I think it safe now(actually this mechanism is learned from Reader)
>
> XenoAmess has updated the pull request incrementally with one additional commit since the last revision:
>
> invert if; refine javadoc.
Is there any practical scenario where the current code (skip buffer allocation on each invocation) creates issues?
Most leaf InputStreams have their own skip implementation. And the same question for Reader class.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5872
More information about the core-libs-dev
mailing list