schwer-q / xar

Automatically exported from code.google.com/p/xar
0 stars 0 forks source link

xar needs compression levels #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
With certain compressors, which level you choose makes a lot of difference
(i.e. more than it does with e.g. gzip). Especially memory usage varies a
lot between different levels, and could be need to change between files.

Adding another option for compression level would make this flexible, where
the level varies from -1 (--fast) to -9 (--best) with the default level
being somewhere inbetween and up to the compressor - usually by passing "-1"

Original issue reported on code.google.com by anders.f...@gmail.com on 21 Sep 2007 at 1:19

GoogleCodeExporter commented 9 years ago

Original comment by bbraun on 21 Sep 2007 at 8:53

GoogleCodeExporter commented 9 years ago
I've added a --compression-args argument to specify the compression level:
xar --compression-args=9 -cvf bin.xar /bin

This should be recognized by gzip, bzip2, and lzma compression.  It should also 
be
extensible enough so that additional tuning parameters can be passed, such as 
the
block size for bzip2, and the memory limit for lzma.

Original comment by bbraun on 16 Oct 2007 at 7:20