Details
-
Enhancement
-
Status: Open
-
P4
-
Resolution: Unresolved
-
15
-
None
-
None
Description
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
Attachments
Issue Links
- relates to
-
JDK-8242848 Improve performance of InflaterOutputStream.write()
-
- Resolved
-