Message389437
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. |
|
Date |
User |
Action |
Args |
2021-03-24 06:04:20 | rhpvorderman | set | recipients:
+ rhpvorderman |
2021-03-24 06:04:20 | rhpvorderman | set | messageid: <1616565860.52.0.251244097489.issue43612@roundup.psfhosted.org> |
2021-03-24 06:04:20 | rhpvorderman | link | issue43612 messages |
2021-03-24 06:04:20 | rhpvorderman | create | |
|