JDK-8251360 : Release Note: Performance Improvement for InflaterOutputStream.write
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2020-08-10
  • Updated: 2021-05-14
  • Resolved: 2020-08-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 15
15Resolved
Description
`InflaterOutputStream(OutputStream out, Inflater infl, int bufLen)` allows for specifying the  decompressor and buffer size to be used.

`InflaterOutputStream.write(byte[] b, int off, int len)` was writing data using a max buffer size of 512 bytes.

Starting with JDK 15 the buffer size specified via `InflaterOutputStream(OutputStream out, Inflater infl, int bufLen)` will be used in  calls to `InflaterOutputStream.write(byte[] b, int off, int len)`.  If the buffer size is not specified when invoking the `InflaterOutputStream `constructor, it will default to 512 bytes.