-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
15
-
None
DeflaterInputStream, GZIPInputStream, GZIPOutputStream, InflaterInputStream, DeflaterOutputStream all use an internal byte buffer of 512 bytes by default.
While this buffer size is configurable, increasing the default to a bigger size (e.g. 4096 bytes) can considerably speed up (up to 50%) read and write operations on these streams when they are created with the default buffer size.
Some performance numbers for InflaterOutputStream can be found in the JMH benchmark attached toJDK-8242848.
While this buffer size is configurable, increasing the default to a bigger size (e.g. 4096 bytes) can considerably speed up (up to 50%) read and write operations on these streams when they are created with the default buffer size.
Some performance numbers for InflaterOutputStream can be found in the JMH benchmark attached to
- relates to
-
JDK-8242848 Improve performance of InflaterOutputStream.write()
- Resolved