-
Enhancement
-
Resolution: Unresolved
-
P3
-
None
-
None
As per Eirik's PR:
https://github.com/openjdk/jdk/pull/12099
===
A common use case for java.util.zip in build tools involves copying entries from a ZipFile or ZipInputStream to a ZipOutputStream without actually modifying the data.
Inflating an entry just to immediately deflate it again with no modifications seems wasteful.
This PR introduces ZipFileInflaterInputStream.transferTo which copies compressed data directly to ZipOutputStreams raw data stream.
I'm typically seeing a 15 X improvement when copying xalan.jar to a ZipOutputStream backed by a buffered file OutputStream, or 22 X when backed by OutputStream.nullOutputStream().
===
https://github.com/openjdk/jdk/pull/12099
===
A common use case for java.util.zip in build tools involves copying entries from a ZipFile or ZipInputStream to a ZipOutputStream without actually modifying the data.
Inflating an entry just to immediately deflate it again with no modifications seems wasteful.
This PR introduces ZipFileInflaterInputStream.transferTo which copies compressed data directly to ZipOutputStreams raw data stream.
I'm typically seeing a 15 X improvement when copying xalan.jar to a ZipOutputStream backed by a buffered file OutputStream, or 22 X when backed by OutputStream.nullOutputStream().
===
- duplicates
-
JDK-4085767 ZipOutputStream should have a copyEntry method
-
- Open
-