-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-135239: simpler use of mutex in hashlib & co #135267
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
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
5d8c093
add common object head for hashlib/hmac objects
picnixz 81e3046
simplify digest computation
picnixz 7f9f7b7
refactor update logic
picnixz 15a4f2f
refactor alloc() logic
picnixz 5cd828a
finalizing touches
picnixz 63db1de
correct mutex usage
picnixz ea033a3
Revert 5cd828acdcfef753aee5eec7e13f07682af40f46
picnixz 77baa67
revert some constructor changes
picnixz 902759f
unconditionally lock when performing HASH updates
picnixz dde68c4
Merge remote-tracking branch 'upstream/main' into perf/hashlib/mutex-…
picnixz 05c1e66
post-merge
picnixz db57278
do not guard against empty buffers for now
picnixz ead20a1
consistency fixes
picnixz 68a6bbc
remove unused import
picnixz 68f297e
correct naming for locked/unlocked versions
picnixz 9817c3d
debug?
picnixz 7c6842b
Merge remote-tracking branch 'upstream/main' into perf/hashlib/mutex-…
picnixz c14c87d
simplify HMAC
picnixz bfb5436
release the GIL for large buffers
picnixz 923c05f
restore GIL_MINSIZE
picnixz 55b2afa
correctly lock objects
picnixz 5cd60d1
improve tests
picnixz a2fcbd5
fixup HMAC
picnixz 417cee1
fixup
picnixz f350501
GIL protection
picnixz 5c4009d
show WASI errors
picnixz 8aec797
fix WASI
picnixz 6db58dc
fix compilation
picnixz b1f9463
fix compilation
picnixz 491b922
fix warnings
picnixz c048975
sync
picnixz c9044d2
fixup format string
picnixz 6c08f0d
address review
picnixz 7fd1396
reudce diff
picnixz f400a11
Merge remote-tracking branch 'upstream/main' into perf/hashlib/mutex-…
picnixz 5e2daa8
Merge remote-tracking branch 'upstream/main' into perf/hashlib/mutex-…
picnixz 4f9729e
Merge remote-tracking branch 'upstream/main' into perf/hashlib/mutex-…
picnixz 06aaee0
Merge branch 'main' into perf/hashlib/mutex-135239
picnixz 977c807
fixup
picnixz 6d66fef
fixup
picnixz c9db0b1
make the test suite less slow
picnixz 6ffdd1c
fix test when GIL_MINSIZE is changed
picnixz 98ec915
defer cosmetics
picnixz 398ddb3
Update Lib/test/test_hashlib.py
picnixz 0ae70e9
improve test
picnixz 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
correctly lock objects
- Loading branch information
commit 55b2afabcd516207125c4774111a5c4288b5c890
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
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
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
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
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
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
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
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
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.