-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow compression in docker:save #1205
Comments
wrosenuance
added a commit
to wrosenuance/docker-maven-plugin
that referenced
this issue
Apr 12, 2019
Signed-off-by: William Rose <[email protected]>
wrosenuance
added a commit
to wrosenuance/docker-maven-plugin
that referenced
this issue
Apr 12, 2019
Signed-off-by: William Rose <[email protected]>
rhuss
pushed a commit
that referenced
this issue
Apr 12, 2019
* Issue #1203 NPE if docker:save called with filename only. Signed-off-by: William Rose <[email protected]> * Issue #1205 Increase GZIP compression speed for docker:save. Signed-off-by: William Rose <[email protected]>
wrosenuance
added a commit
to wrosenuance/docker-maven-plugin
that referenced
this issue
Apr 12, 2019
Signed-off-by: William Rose <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Compression of saved images is performed by the plugin and performs poorly when gzip is used.
Info
The code uses default buffer sizes (8K for copying, 512 bytes for gzip codec) and the default compression level (slowest, but with the smallest output).
Per JDK-8142920, a compression level of 3 is a better balance than the default, running almost twice as fast. Adding in larger buffer sizes led to a significant performance boost for me: for a ~500MB archive that downloads without compression in 54s, it was taking 160s to compress, yielding an ~150MB. Switching to compression level 3 and increasing the buffers to just 64k took the compression time down to 65s and only increased the size to ~163MB.
mvn -v
) : 3.5.4The text was updated successfully, but these errors were encountered: