This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author prikryl
Recipients
Date 2003-08-14.05:39:02
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=771873

I did ask the authors of zlib.  It seems that everything is fine 
except the assumption about "bigger is better" which seems 
natural at first ;-)  The monotonic test should add some 
comment that it may fail. See below:

On Wednesday, August 13, 2003, at 01:45  AM, Petr Prikryl 
wrote:
> My question is: Are the assumptions about the monotonic
> results correct?  In other words, is the Python test correct,
> or is the implementation of the Python wrapper correct
> (i.e. of the enclosed C code), or is there a bug in the
> implementation of deflate()?

[and Mark Adler answered]

It's a feature.  There is no problem with deflate or with the 
Python wrapper.  The compression results, especially on small 
files, are not necessarily monotonic with compression level.  
The compression level determines how hard deflate looks for 
longer matches.  However slightly longer matches do not 
always improve the compression, since it takes more bits to 
encode the longer distances back those matches occur.

mark

History
Date User Action Args
2007-08-23 14:15:56adminlinkissue785222 messages
2007-08-23 14:15:56admincreate