René's URL Explorer Experiment


Title: Avoid redundant garbage collector traversals · Issue #159437 · python/cpython · GitHub

Open Graph Title: Avoid redundant garbage collector traversals · Issue #159437 · python/cpython

X Title: Avoid redundant garbage collector traversals · Issue #159437 · python/cpython

Description: This issue tracks a series of GC optimizations that we have made in OpenAI’s CPython fork and would like to bring upstream. They target the garbage collector in GIL-enabled builds and reduce repeated walks over the same objects during co...

Open Graph Description: This issue tracks a series of GC optimizations that we have made in OpenAI’s CPython fork and would like to bring upstream. They target the garbage collector in GIL-enabled builds and reduce repeat...

X Description: This issue tracks a series of GC optimizations that we have made in OpenAI’s CPython fork and would like to bring upstream. They target the garbage collector in GIL-enabled builds and reduce repeat...

Opengraph URL: https://github.com/python/cpython/issues/159437

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Avoid redundant garbage collector traversals","articleBody":"This issue tracks a series of GC optimizations that we have made in OpenAI’s CPython fork and would like to bring upstream. They target the garbage collector in GIL-enabled builds and reduce repeated walks over the same objects during collection.\n\nThe work includes:\n\n- [gh-159437: Skip unnecessary GC finalizer scans and align functions](https://github.com/python/cpython/pull/159587)\n- [gh-159437: Count garbage during weakref cleanup](https://github.com/python/cpython/pull/159598)\n- [gh-159437: Skip unnecessary late weakref cleanup](https://github.com/python/cpython/pull/159590)\n- [gh-159437: Combine GC reference passes](https://github.com/python/cpython/pull/159599)\n- [gh-159437: Skip unnecessary legacy finalizer scans](https://github.com/python/cpython/pull/159593)\n- [gh-159437: Remove extra resurrection bookkeeping walks](https://github.com/python/cpython/pull/159595)\n- [gh-159437: Support frozen objects in combined GC reference passes](https://github.com/python/cpython/pull/159597)\n- [gh-159437: Skip tuple traversal when a tuple can be untracked](https://github.com/python/cpython/pull/159584)\n\nIn production at OpenAI, we've observed roughly a one-third reduction in GC time with these combined improvements.\n\n\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-159595\n* gh-159599\n* gh-159598\n* gh-159590\n* gh-159587\n* gh-159597\n* gh-159593\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/mfalco-oai","@type":"Person","name":"mfalco-oai"},"datePublished":"2026-10-14T20:12:40Z","url":"https://github.com/python/cpython/issues/159437"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2ad675f8-e4ef-e0ab-4e3d-84a46845c8d9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA23E:154D88:2A9CFC2:36847DF:6B01EC3A
html-safe-nonce138b4f45c33787a8bb7f30e4906daf7c995776a381f901dde023afd66af55b4f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjNFOjE1NEQ4ODoyQTlDRkMyOjM2ODQ3REY6NkIwMUVDM0EiLCJ2aXNpdG9yX2lkIjoiNTYzMjU4MTk2MTAyMjMwMzI5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd1c15d30f5d3ba676e8ad5a4f6aae26aa6ece6d88667714fe842c587e8ad6736
hovercard-subject-tagissue:5854892229
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/159437/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a2e0e6a7acca9483d505d156ba67b1bd34174783fb6c4679f15d7705f2c6d9f6/python/cpython/issues/159437
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a2e0e6a7acca9483d505d156ba67b1bd34174783fb6c4679f15d7705f2c6d9f6/python/cpython/issues/159437
og:image:altThis issue tracks a series of GC optimizations that we have made in OpenAI’s CPython fork and would like to bring upstream. They target the garbage collector in GIL-enabled builds and reduce repeat...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemfalco-oai
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/159437#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F159437
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F159437
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/159437
Reloadhttps://github.com/python/cpython/issues/159437
Reloadhttps://github.com/python/cpython/issues/159437
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/159437
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/159437
Avoid redundant garbage collector traversalshttps://github.com/python/cpython/issues/159437#top
https://github.com/mfalco-oai
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/mfalco-oai
mfalco-oaihttps://github.com/mfalco-oai
on Oct 14, 2026https://github.com/python/cpython/issues/159437#issue-5854892229
gh-159437: Skip unnecessary GC finalizer scans and align functionshttps://github.com/python/cpython/pull/159587
gh-159437: Count garbage during weakref cleanuphttps://github.com/python/cpython/pull/159598
gh-159437: Skip unnecessary late weakref cleanuphttps://github.com/python/cpython/pull/159590
gh-159437: Combine GC reference passeshttps://github.com/python/cpython/pull/159599
gh-159437: Skip unnecessary legacy finalizer scanshttps://github.com/python/cpython/pull/159593
gh-159437: Remove extra resurrection bookkeeping walkshttps://github.com/python/cpython/pull/159595
gh-159437: Support frozen objects in combined GC reference passeshttps://github.com/python/cpython/pull/159597
gh-159437: Skip tuple traversal when a tuple can be untrackedhttps://github.com/python/cpython/pull/159584
gh-159437: Remove extra resurrection bookkeeping walks #159595https://github.com/python/cpython/pull/159595
gh-159437: Combine GC reference passes #159599https://github.com/python/cpython/pull/159599
gh-159437: Count garbage during weakref cleanup #159598https://github.com/python/cpython/pull/159598
gh-159437: Skip unnecessary late weakref cleanup #159590https://github.com/python/cpython/pull/159590
gh-159437: Skip unnecessary GC finalizer scans and align functions #159587https://github.com/python/cpython/pull/159587
gh-159437: Support frozen objects in combined GC reference passes #159597https://github.com/python/cpython/pull/159597
gh-159437: Skip unnecessary legacy finalizer scans #159593https://github.com/python/cpython/pull/159593
brandtbucherhttps://github.com/brandtbucher
mfalco-oaihttps://github.com/mfalco-oai
on Oct 14, 2026https://github.com/python/cpython/issues/159437#event-33265044788
brandtbucherhttps://github.com/brandtbucher
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
on Oct 14, 2026https://github.com/python/cpython/issues/159437#event-33265104815
https://github.com/brandt-oai
brandt-oaihttps://github.com/brandt-oai
on Oct 14, 2026https://github.com/python/cpython/issues/159437#issuecomment-6177806975
@pablogsalhttps://github.com/pablogsal
StanFromIrelandhttps://github.com/StanFromIreland
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
on Oct 14, 2026https://github.com/python/cpython/issues/159437#event-33270827892
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Oct 14, 2026https://github.com/python/cpython/issues/159437#issuecomment-6179350012
@markshannonhttps://github.com/markshannon
pablogsalhttps://github.com/pablogsal
on Oct 14, 2026https://github.com/python/cpython/issues/159437#event-33277931393
Speed up garbage collector #159137https://github.com/python/cpython/issues/159137
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
on Oct 14, 2026https://github.com/python/cpython/issues/159437#issuecomment-6180426017
#159137https://github.com/python/cpython/issues/159137
mfalco-oaihttps://github.com/mfalco-oai
on Oct 16, 2026https://github.com/python/cpython/issues/159437#event-33491216291
pythongh-159437: Skip traversal for untrackable tuple survivorshttps://github.com/mfalco-oai/cpython/commit/9a79b53efefd1e8d1807cda1e39a78ddd9644e4b
pythongh-159437https://github.com/python/cpython/issues/159437
9a79b53https://github.com/mfalco-oai/cpython/commit/9a79b53efefd1e8d1807cda1e39a78ddd9644e4b
https://github.com/mfalco-oai
mfalco-oaihttps://github.com/mfalco-oai
on Oct 16, 2026https://github.com/python/cpython/issues/159437#issuecomment-6226626408
kevinprimeraquecreo-stackhttps://github.com/kevinprimeraquecreo-stack
Project_VKhttps://github.com/users/kevinprimeraquecreo-stack/projects/1
on Oct 18, 2026https://github.com/python/cpython/issues/159437#event-33592166298
github-project-automationhttps://github.com/apps/github-project-automation
Project_VKhttps://github.com/users/kevinprimeraquecreo-stack/projects/1
on Oct 18, 2026https://github.com/python/cpython/issues/159437
kevinprimeraquecreo-stackhttps://github.com/kevinprimeraquecreo-stack
Project_VKhttps://github.com/users/kevinprimeraquecreo-stack/projects/1
on Oct 18, 2026https://github.com/python/cpython/issues/159437#event-33592182212
mfalco-oaihttps://github.com/mfalco-oai
on Oct 19, 2026https://github.com/python/cpython/issues/159437#event-33664104451
pythongh-159437: Support frozen objects in fused GC reference passeshttps://github.com/mfalco-oai/cpython/commit/3afca7a7a95242d7f77bb7be38bcb8d3f2179f26
pythongh-159437https://github.com/python/cpython/issues/159437
3afca7ahttps://github.com/mfalco-oai/cpython/commit/3afca7a7a95242d7f77bb7be38bcb8d3f2179f26
pythongh-159437: Support frozen objects in fused GC reference passeshttps://github.com/mfalco-oai/cpython/commit/402e4d1bad9533892b8fc9c960d2100ad28da860
pythongh-159437https://github.com/python/cpython/issues/159437
402e4d1https://github.com/mfalco-oai/cpython/commit/402e4d1bad9533892b8fc9c960d2100ad28da860
pythongh-159437: Support frozen objects in fused GC reference passeshttps://github.com/mfalco-oai/cpython/commit/eedc334c083fd0b104c81ff92de4e8f322bea91f
pythongh-159437https://github.com/python/cpython/issues/159437
eedc334https://github.com/mfalco-oai/cpython/commit/eedc334c083fd0b104c81ff92de4e8f322bea91f
pythongh-159437: Skip traversal for untrackable tuple survivorshttps://github.com/mfalco-oai/cpython/commit/25c2e1f84c47f9d148e11d3358417f1de0caf4b4
pythongh-159437https://github.com/python/cpython/issues/159437
25c2e1fhttps://github.com/mfalco-oai/cpython/commit/25c2e1f84c47f9d148e11d3358417f1de0caf4b4
pythongh-159437: Remove redundant tuple untracking guardshttps://github.com/mfalco-oai/cpython/commit/76646b0a077b167946750655b4184602adc23cb1
pythongh-159437https://github.com/python/cpython/issues/159437
76646b0https://github.com/mfalco-oai/cpython/commit/76646b0a077b167946750655b4184602adc23cb1
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/159437
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/159437
mfalco-oaihttps://github.com/mfalco-oai
3.16new features, bugs and security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.16%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
performancePerformance or resource usagehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22performance%22
type-featureA feature request or enhancementhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.