-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
gh-82088: Improve performance of PyLong_As*() for multi-digit ints #135585
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
Open
eendebakpt
wants to merge
15
commits into
python:main
Choose a base branch
from
eendebakpt:pylong_aslong
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d3fb72a
x
eendebakpt b3cde88
Merge branch 'pylong_aslong' of github.com:eendebakpt/cpython into py…
eendebakpt a38cbfb
Improve performance of pylong_as_xxx conversions
eendebakpt 588490a
refactor
eendebakpt 8031af0
fix assert
eendebakpt 01c48ae
📜🤖 Added by blurb_it.
blurb-it[bot] 401d860
Update Objects/longobject.c
eendebakpt 750c676
test
eendebakpt 73e7b1b
review comments
eendebakpt e89d66c
Apply suggestions from code review
eendebakpt 7822211
update news entry
eendebakpt e84cf00
Merge branch 'main' into pylong_aslong
eendebakpt f4793e2
reword
eendebakpt 1fc8706
lint
eendebakpt 2d9d098
Apply suggestions from code review
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
5 changes: 5 additions & 0 deletions
5
Misc/NEWS.d/next/Core_and_Builtins/2025-06-17-08-37-45.gh-issue-82088.TgPvLg.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,5 @@ | ||
Improve performance of ``PyLongObject`` conversion functions | ||
``PyLong_AsLongAndOverflow()``, ``PyLong_AsSsize_t()``, ``PyLong_AsUnsignedLong()``, ``PyLong_AsSize_t()``, | ||
``PyLong_AsUnsignedLongMask()``, ``PyLong_AsUnsignedLongLongMask()``, ``PyLong_AsLongLongAndOverflow()`` | ||
for integers larger than 2**30 up to 30%. | ||
|
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.