-
Type:
Enhancement
-
Resolution: Duplicate
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
-
None
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.
- duplicates
-
JDK-8283411 InflaterInputStream holds on to a temporary byte array of 512 bytes
-
- Resolved
-