Re: RFR: 8304745: Lazily initialize byte[] in java.io.BufferedInputStream [v10]

2023-04-06 Thread Jaikiran Pai
On Thu, 6 Apr 2023 10:07:31 GMT, Sergey Tsypanov wrote: >> By default `BufferedInputStream` is constructed with internal buffer with >> capacity 8192. In some cases this buffer is never used, e.g. when we call >> `IS.readNBytes()` or `IS.readAllBytes()` (relying on `BIS.read1()`) or when >> `B

Re: RFR: 8304745: Lazily initialize byte[] in java.io.BufferedInputStream [v10]

2023-04-06 Thread Sergey Tsypanov
> By default `BufferedInputStream` is constructed with internal buffer with > capacity 8192. In some cases this buffer is never used, e.g. when we call > `IS.readNBytes()` or `IS.readAllBytes()` (relying on `BIS.read1()`) or when > `BufferedInputStream` is cascaded. Sergey Tsypanov has updated