As discussed in , this issue tracks allowing to specify the compression level when building packages. The primary idea is to avoid compressing (compression level = NO_COMPRESSION) already compressed binaries, identified based on their MIME type.
Setting the compression level is a tradeoff between the compression speed and the size of the compressed artefacts.
Different use cases likely favour maximising either of the two.
Therefor, it may make sense to allow configuring the compression levels per use case (not globally).
A generic way to express this configuration would be:
- a mapping from MIME type to compression level
- the default level (for MIME type not matching any entry in the mapping)