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 rhpvorderman
Recipients rhpvorderman
Date 2021-03-24.06:04:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616565860.52.0.251244097489.issue43612@roundup.psfhosted.org>
In-reply-to
Content
zlib.compress can now only be used to output zlib blocks.
Arguably `zlib.compress(my_data, level, wbits=-15)` is even more useful as it gives you a raw deflate block. That is quite interesting if you are writing your own file format and want to use compression, but like to use a different hash.

Also gzip.compress(data, level, mtime) is extremely slow due to it instantiating a GzipFile object which then streams a bytes object. Explicitly not taking advantage of the fact that the bytes object is entirely in memory already (I will create another bug for this). zlib.compress(my_data, level, wbits=31) should be faster in all possible circumstances, but that option is not available now.
History
Date User Action Args
2021-03-24 06:04:20rhpvordermansetrecipients: + rhpvorderman
2021-03-24 06:04:20rhpvordermansetmessageid: <1616565860.52.0.251244097489.issue43612@roundup.psfhosted.org>
2021-03-24 06:04:20rhpvordermanlinkissue43612 messages
2021-03-24 06:04:20rhpvordermancreate