Details
-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
None
Description
Currently a new, temporary 512-bytes buffer is allocates for every InflaterInputStream. This is not necessary, because the buffer is only used in InflaterInputStream::skip() which is probably not the most prominent method of InflaterInputStream.
Instead, the skip buffer could be lazily allocated when InflaterInputStream::skip() will be called for the first time.
Instead, the skip buffer could be lazily allocated when InflaterInputStream::skip() will be called for the first time.
Attachments
Issue Links
- duplicates
-
JDK-8283411 InflaterInputStream holds on to a temporary byte array of 512 bytes
- Resolved