CloudNet icon indicating copy to clipboard operation
CloudNet copied to clipboard

disable compression for zip

Open DasBabyPixel opened this issue 2 years ago • 0 comments

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

DasBabyPixel avatar Aug 20 '23 23:08 DasBabyPixel