Loading... (original) (raw)

InputStream.readAllBytes() currently uses intermediate buffers of geometrically increasing size with a copy into each intermediate buffer at each stage. It is possible to improve the memory usage and performance using an alternate algorithm of storing a list of fixed size buffers and gathering those into a single buffer at the end.

backported by

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8237172 Performance of InputStream.readAllBytes() could be improved

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8239202 Performance of InputStream.readAllBytes() could be improved

Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port. JDK-8239998 Performance of InputStream.readAllBytes() could be improved

relates to

Enhancement - null JDK-8080835 Add blocking bulk read operations to java.io.InputStream

Enhancement - null JDK-8264777 Overload optimized FileInputStream::readAllBytes

links to

(1 links to)