-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-127119: Faster check for small ints in long_dealloc #127620
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 all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
cfb70cb
Faster check for small ints in long_dealloc
eendebakpt 426dd09
📜🤖 Added by blurb_it.
blurb-it[bot] 4639642
Use int immortality bit for small int check
eendebakpt d9c26d3
Merge branch 'small_int_immortal_v2' of github.com:eendebakpt/cpython…
eendebakpt 2f73d47
Merge branch 'main' into small_int_immortal_v2
eendebakpt 3b6e1fe
fix compiler warnings
eendebakpt 03184a7
Merge branch 'small_int_immortal_v2' of github.com:eendebakpt/cpython…
eendebakpt 5eca812
compiler warnings
eendebakpt fedc102
some documentation updates
eendebakpt c733d25
Update Objects/longobject.c
eendebakpt 829a595
Merge branch 'small_int_immortal_v2' of github.com:eendebakpt/cpython…
eendebakpt 39da0ea
Update Tools/gdb/libpython.py
eendebakpt 5058e53
tests!
eendebakpt 8a3d00f
tests!
eendebakpt 878207a
update _PyLong_IsNonNegativeCompact
eendebakpt 068a16a
Apply suggestions from code review
eendebakpt a65ec5a
review comments
eendebakpt 38fe25f
Merge branch 'small_int_immortal_v2' of github.com:eendebakpt/cpython…
eendebakpt 32b6e44
spacing
eendebakpt 8543c78
Merge branch 'main' into small_int_immortal_v2
eendebakpt e232ca4
Update Tools/gdb/libpython.py
eendebakpt f1ce753
Merge branch 'main' into small_int_immortal_v2
eendebakpt 99a2fc7
whitespace
eendebakpt f6a76b0
Merge branch 'main' into small_int_immortal_v2
eendebakpt 9894866
Apply suggestions from code review
eendebakpt 7834406
Merge branch 'main' into small_int_immortal_v2
eendebakpt d91b6e3
Merge branch 'main' into small_int_immortal_v2
eendebakpt ebc7e17
Update Modules/_testcapi/immortal.c
eendebakpt aaf110b
Update Modules/_testcapi/immortal.c
eendebakpt 8fcc1d0
Update Include/cpython/longintrepr.h
eendebakpt aff8812
Merge branch 'main' into small_int_immortal_v2
eendebakpt ebb0bca
review comments
eendebakpt 8d8e794
include pycore_long.h
eendebakpt 4a07ba1
header
eendebakpt 1d5b2e0
include pycore_long.h
eendebakpt cfb9120
debug build failure
eendebakpt b606c09
Merge branch 'main' into small_int_immortal_v2
eendebakpt b4c8444
fix bug when copying the immortal bit
eendebakpt f76c0e2
add assert to make sure the immortal bit is not set on subclasses
eendebakpt 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
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
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Core_and_Builtins/2024-12-04-22-14-40.gh-issue-127119._hpyFE.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Slightly optimize the :class:`int` deallocator. | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe include the benchmarks results (it's a 4% improvement which is still noticable IMO). You should mention that it only concerns PGO builds as well.