ouch icon indicating copy to clipboard operation
ouch copied to clipboard

Add compression level configuration flags

Open marcospb19 opened this issue 4 years ago • 1 comments

Planned flags:

--level LEVEL_NUMBER

From 1 to 10, ouch should "translate" that range for each format, considering that some formats use higher numbers than others.

--fast

Less intensive compressing, we can seek for the best defaults aiming for 50% of time taken (run in half the time).

--slow

More intensive compressing, takes longer, we shall look for defaults that take up to double the time, but also, we'll need to establish a RAM limit.

Some compression methods have a memory usage table that explains how much a certain level can use.

marcospb19 avatar Aug 18 '21 19:08 marcospb19

Zip does not support this, and ~~I'd prefer not to have this flag implemented only for some of the formats~~.

marcospb19 avatar Dec 19 '21 19:12 marcospb19

docs.rs/zip now supports specifying compression level

This issue is unblocked.

We can implement for most formats and have some flags have no effect for some of the formats.

marcospb19 avatar Oct 12 '22 16:10 marcospb19

we should also allow specifying the compression method zip is using since the range of possible levels differs

figsoda avatar Oct 12 '22 17:10 figsoda