CloudNet
CloudNet copied to clipboard
disable compression for zip
Motivation
Creating a zip for a directory that should be sent over the network takes very long. Disabling compression makes quite a noticeable improvement in the time it takes for the file to start being sent over the network. Actually sending the file doesn't even take longer most of the time because large files for minecraft servers (region files, jars) are compressed by default and trying to compress them is pointless
Modification
Disabled compression for creating zip files
Result
Faster creating of zips
Other context
An argument can be made to filter for the file extension before zipping, to only disable compression for already compressed entries like jars and region files