[PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Gerard Samuel
The docs do not state what the defaults are, and from tests, 
it seems the values 4 - 9 return the same output as with no value, 
on the string I tested with.
Does anyone know what the default compression levels are?
Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread David T-G
Gerard --

...and then Gerard Samuel said...
% 
% The docs do not state what the defaults are, and from tests, 
% it seems the values 4 - 9 return the same output as with no value, 
% on the string I tested with.

With what sort of data are you working?  How are you gzipping (PEAR
module, class, system call, ...)?


% Does anyone know what the default compression levels are?

My gzip man page says it's -6; I'd suspect it would be the same for any
library call.


% Thanks


HTH  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Gerard Samuel
On Wednesday 29 October 2003 03:27 pm, David T-G wrote:
 Gerard --

 ...and then Gerard Samuel said...
 %
 % The docs do not state what the defaults are, and from tests,
 % it seems the values 4 - 9 return the same output as with no value,
 % on the string I tested with.

 With what sort of data are you working?  How are you gzipping (PEAR
 module, class, system call, ...)?

Right now, Im compressing large serialized strings using the php functions 
gzcompress/gzdeflate.


 % Does anyone know what the default compression levels are?

 My gzip man page says it's -6; I'd suspect it would be the same for any
 library call.

Didn't think to check man pages, but it says the same here, so I guess its 
a good assumption...

Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread David T-G
Gerard, et al --

...and then Gerard Samuel said...
% 
% On Wednesday 29 October 2003 03:27 pm, David T-G wrote:
% 
%  ...and then Gerard Samuel said...
%  %
%  % on the string I tested with.
% 
%  With what sort of data are you working?  How are you gzipping (PEAR
%  module, class, system call, ...)?
% 
% Right now, Im compressing large serialized strings using the php functions 

That sounds good; you probably have enough material there to get some
good compression, and ASCII is always easy.  So perhaps you may only get
better performance with higher numbers if you have a LOT of data.


% gzcompress/gzdeflate.

OK.


% 
%  % Does anyone know what the default compression levels are?
% 
%  My gzip man page says it's -6; I'd suspect it would be the same for any
%  library call.
% 
% Didn't think to check man pages, but it says the same here, so I guess its 
% a good assumption...

It's a good place to start :-)


% 
% Thanks

Sure thing!


HTH  HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, Science and Health
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Evan Nemerson
On Wednesday 29 October 2003 11:29 am, Gerard Samuel wrote:
 The docs do not state what the defaults are, and from tests,
 it seems the values 4 - 9 return the same output as with no value,
 on the string I tested with.
 Does anyone know what the default compression levels are?

IIRC the default value is -1, which zlib currently converts to 6.

 Thanks

-- 
Evan Nemerson
[EMAIL PROTECTED]

--
To think is to differ.

-Clarence Darrow

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gzcompress/gzdeflate default compression level?

2003-10-29 Thread Marek Kilimajer
I think the default is 6, but you will need a very long string to get 
any benefit from higher numbers.

Gerard Samuel wrote:
The docs do not state what the defaults are, and from tests, 
it seems the values 4 - 9 return the same output as with no value, 
on the string I tested with.
Does anyone know what the default compression levels are?
Thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php