Re: Possible values for --compress-level and --bzip2-compress-level

2016-02-25 Thread David Shaw
On Feb 24, 2016, at 9:11 AM, Josef Carnap <car...@gmx.at> wrote:
> 
> Hello everyone,
> 
> I have a question to the options --compress-level and
> --bzip2-compress-level. Which are the supportet (possible)
> values of each of the options? -- Numbers from 0 up to 6?

1 through 9, with 1 being the least compression (but generally runs faster) and 
9 being the most compression (but generally runs slower).

David
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: Possible values for --compress-level and --bzip2-compress-level

2016-02-25 Thread Peter Lebbing
On 24/02/16 15:11, Josef Carnap wrote:
> I have a question to the options --compress-level and
> --bzip2-compress-level. Which are the supportet (possible)
> values of each of the options? -- Numbers from 0 up to 6?

The canonical way to use the BZIP2 algorithm on Linux is through the
bzip2 program. Its man page lists the following:

>-1 (or --fast) to -9 (or --best)
>   Set  the  block size to 100 k, 200 k ...  900 k when 
> compressing.
>   Has no effect when decompressing.  See MEMORY  MANAGEMENT  
> below.
>   The --fast and --best aliases are primarily for GNU gzip 
> compatiā€
>   bility.  In particular, --fast doesn't make things  
> significantly
>   faster.  And --best merely selects the default behaviour.

The other two require you to look a bit further than just lowercasing
:), but I think they both use the DEFLATE compression method. On Linux,
you will often use gzip to create archives with DEFLATE. Its man page says:

>-# --fast --best
>   Regulate the speed of compression using the  specified  digit  
> #,
>   where -1 or --fast indicates the fastest compression method 
> (less
>   compression) and -9 or --best indicates the  slowest  
> compression
>   method  (best  compression).  The default compression level is 
> -6
>   (that is, biased towards high compression at expense of speed).

This does however raise a question:

> Here is the description of the both options in the GPG Manual: 
> [...]
> --bzip2-compress-level sets the compression level for the BZIP2
> compression algorithm (defaulting to 6 as well). This is a different
> option from --compress-level since BZIP2 uses a significant amount of
> memory for each additional compression level.

The defaults are apparently different?

HTH,

Peter.

-- 
I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at <http://digitalbrains.com/2012/openpgp-key-peter>

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Possible values for --compress-level and --bzip2-compress-level

2016-02-24 Thread Josef Carnap
Hello everyone,

I have a question to the options --compress-level and
--bzip2-compress-level. Which are the supportet (possible)
values of each of the options? -- Numbers from 0 up to 6?
---

Here is the description of the both options in the GPG Manual:
-z n
--compress-level n
--bzip2-compress-level n

Set compression level to n for the ZIP and ZLIB compression algorithms.
The default is to use the
default compression level of zlib (normally 6). --bzip2-compress-level
sets the compression level
for the BZIP2 compression algorithm (defaulting to 6 as well). This is a
different option from
--compress-level since BZIP2 uses a significant amount of memory for
each additional compression level.
-z sets both. A value of 0 for n disables compression.

Best regards Josef

P.S. Sorry for my perhaps weird english, I'm not a native speaker.

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users