RFR 8193832: Performance of InputStream.readAllBytes() could be improved

Brian Burkhalter brian.burkhalter at oracle.com
Fri Dec 22 16:44:22 UTC 2017

Hi Peter,

On Dec 22, 2017, at 1:21 AM, Peter Levart <peter.levart at gmail.com> wrote:

> I think this looks good. No more suggestions from my side for this patch. As Paul notes, it would be interesting to see if using Unsafe.allocateUninitializedArray() to allocate the final array (and intermediate buffers too) has a measurable impact.

Thanks for the final look. I am going to run regression tests once again today and if there is no problem I’ll check this in. I’ll also file a follow-up issue about the uninitialized array case.


More information about the core-libs-dev mailing list