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 scoder
Recipients rhpvorderman, scoder
Date 2020-08-17.14:29:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597674559.35.0.0952211700454.issue41566@roundup.psfhosted.org>
In-reply-to
Content
> libdeflate and isa-l use different compression ratio's for the levels.

I don't see why these would need to translate 1:1. The zlib module is a Python API wrapper, it can do its own mapping here, or use the libraries selectively only for some compression levels. Python code also cannot rely on an exact bit pattern coming out of the zlib/gzip compressor, since that might change with the zlib version that is available. So I think we're fine when replacing the underlying implementation, as long as the API does not change and the output is strictly zlib/gzip compatible (and there are no visible performance/size regressions, as your numbers seem to suggest, but that would need some broader testing).


You also wrote on python-ideas that

> It is packaged in linux distros already

That might be an option then. CPython could use the existing library if it is available. It doesn't have to ship the sources. Most Linux distributions already build some standard library modules against the system-wide installed libraries rather than whatever CPython ships in its sources. And those distributions could then make the library a fixed dependency of their CPython packages.
History
Date User Action Args
2020-08-17 14:29:19scodersetrecipients: + scoder, rhpvorderman
2020-08-17 14:29:19scodersetmessageid: <1597674559.35.0.0952211700454.issue41566@roundup.psfhosted.org>
2020-08-17 14:29:19scoderlinkissue41566 messages
2020-08-17 14:29:18scodercreate