Message375549
> 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. |
|
Date |
User |
Action |
Args |
2020-08-17 14:29:19 | scoder | set | recipients:
+ scoder, rhpvorderman |
2020-08-17 14:29:19 | scoder | set | messageid: <1597674559.35.0.0952211700454.issue41566@roundup.psfhosted.org> |
2020-08-17 14:29:19 | scoder | link | issue41566 messages |
2020-08-17 14:29:18 | scoder | create | |
|