Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[3.14] GH-139951: Fix major GC performance regression. Backport of GH-140262#140447

Merged
markshannon merged 1 commit into
python:3.14python/cpython:3.14from
faster-cpython:backport-140262faster-cpython/cpython:backport-140262Copy head branch name to clipboard
Oct 23, 2025
Merged

[3.14] GH-139951: Fix major GC performance regression. Backport of GH-140262#140447
markshannon merged 1 commit into
python:3.14python/cpython:3.14from
faster-cpython:backport-140262faster-cpython/cpython:backport-140262Copy head branch name to clipboard

Conversation

@markshannon

@markshannon markshannon commented Oct 22, 2025

Copy link
Copy Markdown
Member
  • Count number of actually tracked objects, instead of trackable objects. This ensures that untracking tuples has the desired effect of reducing GC overhead
  • Do not track most untrackable tuples during creation. This prevents large numbers of small tuples causing execessive GCs.

* Count number of actually tracked objects, instead of trackable objects. This ensures that untracking tuples has the desired effect of reducing GC overhead
* Do not track most untrackable tuples during creation. This prevents large numbers of small tuples causing execessive GCs.
@colesbury

Copy link
Copy Markdown
Contributor

FYI, this and #140423 look like nearly identical PRs.

@sergey-miryanov sergey-miryanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@markshannon markshannon merged commit d1a434f into python:3.14 Oct 23, 2025
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.