Re: RFR: 8264777: Overload optimized FileInputStream::readAllBytes [v5]

2021-05-06 Thread Alan Bateman
On Tue, 4 May 2021 20:13:20 GMT, Brian Burkhalter wrote: >> On `/proc/cpuinfo` for example, `fstat()` succeeds but `st_size` in `struct >> stat` is zero. The correct position is however returned by `lseek()`. >> Apparently this proposal needs to be reworked to expect size zero when the >>

Re: RFR: 8264777: Overload optimized FileInputStream::readAllBytes [v5]

2021-05-05 Thread Brian Burkhalter
> Please consider this request to override the `java.io.InputStream` methods > `readAllBytes()` and `readNBytes(int)` in `FileInputStream` with more > performant implementations. The method overrides attempt to read all > requested bytes into a single array of the required size rather than >