-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-132983: Introduce _zstd
bindings module
#133027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+4,804
−1
Merged
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit
Hold shift + click to select a range
9814e3b
Add _zstd module
emmatyping fda87c8
Add _zstd to modules
emmatyping 887e564
Fix path for compression.zstd module
emmatyping cdba656
Ignore _zstd module like _io
emmatyping 6b67e9b
Expand module state macros to improve code quality
emmatyping a99a5d2
Remove backticks suggested in review
emmatyping 02cd17a
Use critical sections to lock object state
emmatyping 54eca74
Remove compress/decompress and mark module as not reliant on the GIL
emmatyping f605956
Lift critical section to avoid clang warning
emmatyping 2eadc65
Respond to comments by picnixz
emmatyping 8eac354
Call out pyzstd explicitly in license description
emmatyping 26775be
Use a much more robust implementation...
emmatyping eae460f
Use PyList_GetItemRef for thread safety purposes
emmatyping 2ab5e4a
Use a macro for the minimum supported version
emmatyping d5bf1c1
remove const from primivite types
emmatyping 9e92b9f
Use PyMem_New in another spot
emmatyping 47f815a
Simplify error handling in _get_frame_size
emmatyping 6a4f7b8
Another simplification of error handling in get_frame_info
emmatyping d7b3805
Rename _module_state to mod_state
emmatyping c225ea6
Rewrite comment explaining the context of the code
emmatyping 6e8c61c
Add link to pyzstd
emmatyping e52ad06
Add TODO about refactoring dict training code
emmatyping 2a1ad8b
Use PyModule_AddObjectRef over PyModule_AddObject
emmatyping 94473b9
Check result of OutputBufferGrow
emmatyping e2b2515
Simplify return logic in `add_constant_to_type`
emmatyping cd2f085
Ignore return value of _zstd_clear()
emmatyping 79e174f
Remove redundant comments
emmatyping ce6f79c
Remove __reduce__ from ZstdDict
emmatyping e15dd85
Use PyUnicode_FromFormat instead of a buffer
emmatyping 685a3d1
Don't use C constants/types in error messages
emmatyping 1b9f786
Make error messages easier to understand for Python users
emmatyping 40c653c
Lower minimum required version 1.4.0
emmatyping 428677d
Use casts and make slot function signatures correct
emmatyping 0962bbb
Be consistent with CPython on const usage
emmatyping 85efc18
Make else clauses in line with PEP 7
emmatyping cadf6e4
Fix over-indented blocks in argument clinic
emmatyping e45c22a
Merge branch 'main' into 3.14-zstd-c-code
emmatyping b9415be
Merge branch 'main' into 3.14-zstd-c-code
emmatyping 6760545
Add critical section around ZSTD_DCtx_setParameter
emmatyping c082d8a
Add a TODO about refactoring critical sections
emmatyping e825285
Use Py_UNREACHABLE
emmatyping f02ff5a
Move bytes operations out of Py_BEGIN_ALLOW_THREADS
emmatyping 0d69c8c
Add TODO about ensuring a lock is held
emmatyping 58b0008
Remove asserts that may not be correct
emmatyping c786c3c
Add TODO to make ZstdDict and others GC objects
emmatyping a9d57fc
Make objects GC tracked
emmatyping cc9ab2a
Remove unused include
emmatyping 1f65d19
Fix some memory issues
emmatyping 552da2d
Fix refleaks on module and in ZstdDict
emmatyping c0648d8
Update configure to check for ZDICT_finalizeDictionary
emmatyping d149b2c
Merge branch 'main' into 3.14-zstd-c-code
emmatyping a5ea379
Properly check version in configure
emmatyping 0d88d6d
exit(1) if check fails
emmatyping 4a0a33e
Use AC_RUN_IFELSE
emmatyping 30b3934
Use a define() to re-use version check
emmatyping 90b9172
Merge branch 'main' into 3.14-zstd-c-code
emmatyping 8fdc7f7
Actually properly set _zstd module status based on version
emmatyping 10e2e80
Merge branch 'main' into 3.14-zstd-c-code
emmatyping d90b29d
8000
Merge branch 'main' into 3.14-zstd-c-code
emmatyping File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Expand module state macros to improve code quality
Also removes module state references from the classes in the _zstd module and instead uses PyType_GetModuleState()
- Loading branch information
commit 6b67e9bac8dfe7f9c82f0d3e2cb0646c8f2ee251
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.