Uh oh!
There was an error while loading. Please reload this page.
gh-132983: Clean-ups for _zstd - #133670
Conversation
I read through your commits and have no objections, but I don't feel confident enough to review this on my own. Did you decide to leave functions of |
AA-Turner
commented
May 8, 2025
Good question -- this PR was getting too big, so I just submitted the changes to the module-level constants. I intend to go through the functions in a follow-up. A |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
emmatyping
left a comment
There was a problem hiding this comment.
I have one request but otherwise I think these changes look like great clean ups. Thanks!
Uh oh!
There was an error while loading. Please reload this page.
This reverts commit e02f66c.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Thanks @AA-Turner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
(cherry picked from commit c2a5d4b) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
GH-133756 is a backport of this pull request to the 3.14 branch. |
cc @Rogdham (can't request review).
Best reviewed commit-by-commit.
This contains several clean-ups for the
_zstdmodule._compressionLevel_valuesis replaced with a single int constant, the default compression levelzstd_version_infois initialised from the macros, removing version decomposition arithmetic_ZSTD_CStreamSizes_ZSTD_DStreamSizeswithZSTD_DStreamOutSize_ZSTD_Configset_zstd_error()add_parametersfunction and use the existingPyModule_AddIntMacrorather than defining a local equivalentcompression.zstdA