René's URL Explorer Experiment


Title: gh-142531: Fix free-threaded GC performance regression by nascheme · Pull Request #142562 · python/cpython · GitHub

Open Graph Title: gh-142531: Fix free-threaded GC performance regression by nascheme · Pull Request #142562 · python/cpython

X Title: gh-142531: Fix free-threaded GC performance regression by nascheme · Pull Request #142562 · python/cpython

Description: If there are many untracked tuples, the GC will run too often, resulting in poor performance. The fix is to include untracked tuples in the "long lived" object count. The number of frozen objects ...

Open Graph Description: If there are many untracked tuples, the GC will run too often, resulting in poor performance. The fix is to include untracked tuples in the "long lived" object count. The number of froze...

X Description: If there are many untracked tuples, the GC will run too often, resulting in poor performance. The fix is to include untracked tuples in the "long lived" object count. The number ...

Opengraph URL: https://github.com/python/cpython/pull/142562

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:7a1581db-04f9-f427-47f3-d58a8934b9e9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA56A:371600:247C84B:31DBBE0:696AC8A4
html-safe-noncee8afc7e1b42826fa9bc65e4364d0a9450ecf0102f83b522acaeebff21f0d458a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTZBOjM3MTYwMDoyNDdDODRCOjMxREJCRTA6Njk2QUM4QTQiLCJ2aXNpdG9yX2lkIjoiNjQ4Nzk1NTU0ODc0NDEwODE5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3273f166f74c031093f4b497394b4dcb11156c3293203b2c2e3a02d7d03843d8
hovercard-subject-tagpull_request:3091871987
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/142562/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/a4012327f2827b8863e88367c5649b04dc96dae5289e7c12789d01cfc513c9ea/python/cpython/pull/142562
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a4012327f2827b8863e88367c5649b04dc96dae5289e7c12789d01cfc513c9ea/python/cpython/pull/142562
og:image:altIf there are many untracked tuples, the GC will run too often, resulting in poor performance. The fix is to include untracked tuples in the "long lived" object count. The number of froze...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenascheme
hostnamegithub.com
expected-hostnamegithub.com
Nonec785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d
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
releasec718a376fcf780eb22089171adb84a543f660bf7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/142562#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142562
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142562
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/142562
Reloadhttps://github.com/python/cpython/pull/142562
Reloadhttps://github.com/python/cpython/pull/142562
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/142562
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/142562
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://github.com/python/cpython/pull/142562#issue-comment-box
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
nascheme:gh-142531-gc-untracked-tuples-long-livedhttps://github.com/nascheme/cpython/tree/gh-142531-gc-untracked-tuples-long-lived
gh-142531: Fix free-threaded GC performance regression https://github.com/python/cpython/pull/142562#top
naschemehttps://github.com/nascheme
python:mainhttps://github.com/python/cpython/tree/main
nascheme:gh-142531-gc-untracked-tuples-long-livedhttps://github.com/nascheme/cpython/tree/gh-142531-gc-untracked-tuples-long-lived
Conversation 6 https://github.com/python/cpython/pull/142562
Commits 5 https://github.com/python/cpython/pull/142562/commits
Checks 54 https://github.com/python/cpython/pull/142562/checks
Files changed 4 https://github.com/python/cpython/pull/142562/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/nascheme
naschemehttps://github.com/nascheme
Dec 11, 2025https://github.com/python/cpython/pull/142562#issue-3718093693
Please reload this pagehttps://github.com/python/cpython/pull/142562
[3.14t] Free-threaded GC performance regression on tuples #142531https://github.com/python/cpython/issues/142531
Please reload this pagehttps://github.com/python/cpython/pull/142562
https://github.com/nascheme
pythongh-142531https://github.com/python/cpython/issues/142531
: Fix free-threaded GC performance regressionhttps://github.com/python/cpython/pull/142562/commits/40657c755e2038dc335e2580b225d38907e3890e
40657c7https://github.com/python/cpython/pull/142562/commits/40657c755e2038dc335e2580b225d38907e3890e
https://github.com/nascheme
naschemehttps://github.com/nascheme
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
Dec 11, 2025https://github.com/python/cpython/pull/142562#event-21496672555
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Dec 11, 2025 https://github.com/python/cpython/pull/142562#ref-issue-3716569473
[3.14t] Free-threaded GC performance regression on tuples #142531 https://github.com/python/cpython/issues/142531
https://github.com/nascheme
naschemehttps://github.com/nascheme
3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.14
3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.15
Dec 11, 2025https://github.com/python/cpython/pull/142562#event-21496754541
naschemehttps://github.com/nascheme
December 10, 2025 23:51https://github.com/python/cpython/pull/142562#commits-pushed-53835dd
https://github.com/nascheme
Improve accounting of long lived objects.https://github.com/python/cpython/pull/142562/commits/53835dd15bd6de04da16f816e77617b41e2292f7
53835ddhttps://github.com/python/cpython/pull/142562/commits/53835dd15bd6de04da16f816e77617b41e2292f7
https://github.com/nascheme
Merge branch 'origin/main' intohttps://github.com/python/cpython/pull/142562/commits/4a6589397fefb7d5a5a21861900f0295cbc82725
pythongh-142531https://github.com/python/cpython/issues/142531
-gc-untracked-tuples-l…https://github.com/python/cpython/pull/142562/commits/4a6589397fefb7d5a5a21861900f0295cbc82725
4a65893https://github.com/python/cpython/pull/142562/commits/4a6589397fefb7d5a5a21861900f0295cbc82725
https://github.com/nascheme
Avoid TSAN warning.https://github.com/python/cpython/pull/142562/commits/e60bc49adfa041d85057d25b34f9c97fea0ab98f
e60bc49https://github.com/python/cpython/pull/142562/commits/e60bc49adfa041d85057d25b34f9c97fea0ab98f
https://github.com/nascheme
naschemehttps://github.com/nascheme
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Dec 11, 2025https://github.com/python/cpython/pull/142562#event-21502052393
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Dec 11, 2025https://github.com/python/cpython/pull/142562#issuecomment-3641515258
@naschemehttps://github.com/nascheme
e60bc49https://github.com/python/cpython/commit/e60bc49adfa041d85057d25b34f9c97fea0ab98f
https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F142562%2Fmergehttps://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F142562%2Fmerge
Please reload this pagehttps://github.com/python/cpython/pull/142562
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
🔨 test-with-buildbots https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Ahammer%3A%20test-with-buildbots%22
Dec 11, 2025https://github.com/python/cpython/pull/142562#event-21502053100
https://github.com/nascheme
Add unit test to ensure correct counting.https://github.com/python/cpython/pull/142562/commits/7ee345e9493165a5007fd635bf7f07ff3d1c1a10
7ee345ehttps://github.com/python/cpython/pull/142562/commits/7ee345e9493165a5007fd635bf7f07ff3d1c1a10
https://github.com/nascheme
naschemehttps://github.com/nascheme
December 11, 2025 17:23https://github.com/python/cpython/pull/142562#event-21509810899
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Dec 11, 2025https://github.com/python/cpython/pull/142562#event-21509812041
https://github.com/colesbury
colesburyhttps://github.com/colesbury
Dec 11, 2025 https://github.com/python/cpython/pull/142562#pullrequestreview-3569030148
View reviewed changes https://github.com/python/cpython/pull/142562/files/7ee345e9493165a5007fd635bf7f07ff3d1c1a10
colesburyhttps://github.com/colesbury
https://github.com/python/cpython/pull/142562#pullrequestreview-3569030148
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/142562
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Dec 11, 2025https://github.com/python/cpython/pull/142562#event-21512368012
https://github.com/nascheme
naschemehttps://github.com/nascheme
e38967ehttps://github.com/python/cpython/commit/e38967ed60778146050cc88dd16b70bfd867fde7
Dec 11, 2025https://github.com/python/cpython/pull/142562#event-21513206878
Please reload this pagehttps://github.com/python/cpython/pull/142562
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Dec 11, 2025https://github.com/python/cpython/pull/142562#event-21513207621
https://github.com/nascheme
naschemehttps://github.com/nascheme
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Dec 11, 2025https://github.com/python/cpython/pull/142562#event-21513217100
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Dec 11, 2025https://github.com/python/cpython/pull/142562#issuecomment-3643674248
@naschemehttps://github.com/nascheme
Please reload this pagehttps://github.com/python/cpython/pull/142562
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Dec 11, 2025https://github.com/python/cpython/pull/142562#issuecomment-3643674392
@naschemehttps://github.com/nascheme
cherry_pickerhttps://pypi.org/project/cherry-picker/
Please reload this pagehttps://github.com/python/cpython/pull/142562
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
naschemehttps://github.com/nascheme
Dec 11, 2025https://github.com/python/cpython/pull/142562#event-21513218676
https://github.com/MaxiBoether
MaxiBoetherhttps://github.com/MaxiBoether
Dec 12, 2025https://github.com/python/cpython/pull/142562#issuecomment-3645343865
Please reload this pagehttps://github.com/python/cpython/pull/142562
naschemehttps://github.com/nascheme
Dec 12, 2025 https://github.com/python/cpython/pull/142562#ref-commit-a6b237f
https://github.com/nascheme
[3.14]https://github.com/nascheme/cpython/commit/a6b237f019c082e1a7d7282e15838d4c51fae177
pythongh-142531https://github.com/python/cpython/issues/142531
: Fix free-threaded GC performance regression (https://github.com/nascheme/cpython/commit/a6b237f019c082e1a7d7282e15838d4c51fae177
p…https://github.com/python/cpython/pull/142562
a6b237fhttps://github.com/nascheme/cpython/commit/a6b237f019c082e1a7d7282e15838d4c51fae177
…ythongh-142562https://github.com/python/cpython/pull/142562
e38967ehttps://github.com/nascheme/cpython/commit/e38967ed60778146050cc88dd16b70bfd867fde7
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Dec 12, 2025https://github.com/python/cpython/pull/142562#issuecomment-3645534565
GH-142617https://github.com/python/cpython/pull/142617
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/142562
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Dec 12, 2025https://github.com/python/cpython/pull/142562#event-21523098979
fateleihttps://github.com/fatelei
Dec 12, 2025 https://github.com/python/cpython/pull/142562#ref-commit-ac2e042
https://github.com/nascheme
https://github.com/fatelei
pythongh-142531https://github.com/python/cpython/issues/142531
: Fix free-threaded GC performance regression (https://github.com/fatelei/cpython/commit/ac2e0428e088525d46658546771afd238fd5a117
pythong…https://github.com/python/cpython/pull/142562
ac2e042https://github.com/fatelei/cpython/commit/ac2e0428e088525d46658546771afd238fd5a117
…h-142562https://github.com/python/cpython/pull/142562
naschemehttps://github.com/nascheme
Dec 12, 2025 https://github.com/python/cpython/pull/142562#ref-commit-27f27a6
https://github.com/nascheme
[3.14]https://github.com/python/cpython/commit/27f27a68b35e5650c350b83c347d43e8b794422f
gh-142531https://github.com/python/cpython/issues/142531
: Fix free-threaded GC performance regression (https://github.com/python/cpython/commit/27f27a68b35e5650c350b83c347d43e8b794422f
gh-142562https://github.com/python/cpython/pull/142562
27f27a6https://github.com/python/cpython/commit/27f27a68b35e5650c350b83c347d43e8b794422f
https://github.com/python/cpython/pull/142562
gh-142617https://github.com/python/cpython/pull/142617
e38967ehttps://github.com/python/cpython/commit/e38967ed60778146050cc88dd16b70bfd867fde7
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F142562
https://github.com/colesbury
colesbury https://github.com/colesbury
https://github.com/python/cpython/pull/142562/files/7ee345e9493165a5007fd635bf7f07ff3d1c1a10
https://github.com/nascheme
nascheme https://github.com/nascheme
3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.14
3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.15
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
topic-free-threading https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-free-threading
Please reload this pagehttps://github.com/python/cpython/pull/142562
https://github.com/nascheme
https://github.com/bedevere-bot
https://github.com/MaxiBoether
https://github.com/colesbury
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.