-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
gh-139951: Do not track immutable tuples in GC #140204
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
efimov-mikhail
wants to merge
20
commits into
python:main
Choose a base branch
from
efimov-mikhail:sergey-miryanov-139389-donot-track-immutable-tuples
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 13 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
fbb7342
Do not track immutable tuples in PyTuple_Pack
sergey-miryanov be72b3f
Extra stats
sergey-miryanov 04f0f66
Implement for all
sergey-miryanov 3b80c93
Merge branch 'main' into 139389-donot-track-immutable-tuples
sergey-miryanov ff81eb2
Count total tuples
sergey-miryanov f1220e4
expirements
efimov-mikhail 8b7fcd5
some clean
efimov-mikhail b281fe8
Remove statistics
efimov-mikhail 5c117a7
Update PyTuple_FromArray
efimov-mikhail 0d7eff1
Helper function is added
efimov-mikhail a679b50
Update Objects/tupleobject.c
efimov-mikhail 35dfe24
Update Objects/tupleobject.c
efimov-mikhail 4297f8b
Review addressed
efimov-mikhail ddfe151
News updated
efimov-mikhail 30dd590
expirements
efimov-mikhail 63c0e3e
Revert GC changes
efimov-mikhail 9ce41be
Check tuple tracking after tp_subscipt
efimov-mikhail 77a0373
Review addressed
efimov-mikhail 567105f
Address feedback
efimov-mikhail d00b16a
Merge branch 'main' into sergey-miryanov-139389-donot-track-immutable…
efimov-mikhail 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
2 changes: 2 additions & 0 deletions
2
Misc/NEWS.d/next/Core_and_Builtins/2025-10-16-15-02-11.gh-issue-139951.tqbIsW.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,2 @@ | ||
Do not track immutable tuples in GC. Count only tracked objects in GC young | ||
objects counter. Patch by Sergey Miryanov and Mikhail Efimov |
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.