René's URL Explorer Experiment


Title: bpo-40521: Make tuple free list per-interpreter by vstinner · Pull Request #20247 · python/cpython · GitHub

Open Graph Title: bpo-40521: Make tuple free list per-interpreter by vstinner · Pull Request #20247 · python/cpython

X Title: bpo-40521: Make tuple free list per-interpreter by vstinner · Pull Request #20247 · python/cpython

Description: Each interpreter now has its own tuple free lists: Move tuple numfree and free_list arrays into PyInterpreterState. Define PyTuple_MAXSAVESIZE and PyTuple_MAXFREELIST macros in pycore_interp.h. Add _Py_tuple_state structure. Pass it explicitly to tuple_alloc(). Add tstate parameter to _PyTuple_ClearFreeList() Each interpreter now has its own empty tuple singleton. https://bugs.python.org/issue40521

Open Graph Description: Each interpreter now has its own tuple free lists: Move tuple numfree and free_list arrays into PyInterpreterState. Define PyTuple_MAXSAVESIZE and PyTuple_MAXFREELIST macros in pycore_interp.h. Ad...

X Description: Each interpreter now has its own tuple free lists: Move tuple numfree and free_list arrays into PyInterpreterState. Define PyTuple_MAXSAVESIZE and PyTuple_MAXFREELIST macros in pycore_interp.h. Ad...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ccd9408c-f187-7b10-bec2-39da1dba5188
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDBF0:2786B7:7BB47A:A6E34C:6969DC79
html-safe-nonce4c6ea7530252693f7331d5cc401fe7df24f7e83264a35abaa9c7395c22e1b430
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkYwOjI3ODZCNzo3QkI0N0E6QTZFMzRDOjY5NjlEQzc5IiwidmlzaXRvcl9pZCI6Ijc3NjQzMzA1OTI1Nzk3Mzg3NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7731427def55139f9050d7252169c266ed40b3033f328fb5ff0fbc4ebaeef0d2
hovercard-subject-tagpull_request:420416254
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/20247/files
twitter:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/194129?s=400&v=4
og:image:altEach interpreter now has its own tuple free lists: Move tuple numfree and free_list arrays into PyInterpreterState. Define PyTuple_MAXSAVESIZE and PyTuple_MAXFREELIST macros in pycore_interp.h. Ad...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasebdde15ad1b403e23b08bbd89b53fbe6bdf688cad
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/20247/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20247%2Ffiles
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%2F20247%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/20247/files
Reloadhttps://github.com/python/cpython/pull/20247/files
Reloadhttps://github.com/python/cpython/pull/20247/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/20247/files
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/20247/files
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
vstinnerhttps://github.com/vstinner
python:masterhttps://github.com/python/cpython/tree/master
Conversation 16 https://github.com/python/cpython/pull/20247
Commits 3 https://github.com/python/cpython/pull/20247/commits
Checks 0 https://github.com/python/cpython/pull/20247/checks
Files changed https://github.com/python/cpython/pull/20247/files
Please reload this pagehttps://github.com/python/cpython/pull/20247/files
bpo-40521: Make tuple free list per-interpreter https://github.com/python/cpython/pull/20247/files#top
Show all changes 3 commits https://github.com/python/cpython/pull/20247/files
8be4478 bpo-40521: Make tuple free list per-interpreter vstinner May 19, 2020 https://github.com/python/cpython/pull/20247/commits/8be447889b4e02b93500491f431e313fe07f7d34
efc11d6 Clear empty tuple singleton in Py_EndInterpreter() vstinner May 19, 2020 https://github.com/python/cpython/pull/20247/commits/efc11d62556e69d8f17550070764ebbdde948879
d472b89 Complete the NEWS entry vstinner May 19, 2020 https://github.com/python/cpython/pull/20247/commits/d472b89c7cdf47236eb6e8898d31ec604b8764d6
Clear filters https://github.com/python/cpython/pull/20247/files
Please reload this pagehttps://github.com/python/cpython/pull/20247/files
Please reload this pagehttps://github.com/python/cpython/pull/20247/files
pycore_gc.h https://github.com/python/cpython/pull/20247/files#diff-0e64649e0124da22bbdd808a1902470f99752765073e6f1eb8bbd734ef1f4255
pycore_interp.h https://github.com/python/cpython/pull/20247/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
pycore_pylifecycle.h https://github.com/python/cpython/pull/20247/files#diff-654f110e8bb3ccaa35433482309c4552cd8d74958bfb8b780daa6222f8ab2859
2020-05-20-01-17-34.bpo-40521.wvAehI.rst https://github.com/python/cpython/pull/20247/files#diff-9b17c4d5a1b6d069c623add3c8c6d44436b650f16358ae8e50503981a5eccfe9
gcmodule.c https://github.com/python/cpython/pull/20247/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77
tupleobject.c https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
pylifecycle.c https://github.com/python/cpython/pull/20247/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
Include/internal/pycore_gc.hhttps://github.com/python/cpython/pull/20247/files#diff-0e64649e0124da22bbdd808a1902470f99752765073e6f1eb8bbd734ef1f4255
View file https://github.com/python/cpython/blob/d472b89c7cdf47236eb6e8898d31ec604b8764d6/Include/internal/pycore_gc.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20247/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20247/files#diff-0e64649e0124da22bbdd808a1902470f99752765073e6f1eb8bbd734ef1f4255
https://github.com/python/cpython/pull/20247/files#diff-0e64649e0124da22bbdd808a1902470f99752765073e6f1eb8bbd734ef1f4255
Include/internal/pycore_interp.hhttps://github.com/python/cpython/pull/20247/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
View file https://github.com/python/cpython/blob/d472b89c7cdf47236eb6e8898d31ec604b8764d6/Include/internal/pycore_interp.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20247/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20247/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/pull/20247/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/pull/20247/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
https://github.com/python/cpython/pull/20247/files#diff-cb06b7ba43789a1d6ae5bef46baa8a255b72dbcd2b44bfec7f146ea4e94dbfa0
Include/internal/pycore_pylifecycle.hhttps://github.com/python/cpython/pull/20247/files#diff-654f110e8bb3ccaa35433482309c4552cd8d74958bfb8b780daa6222f8ab2859
View file https://github.com/python/cpython/blob/d472b89c7cdf47236eb6e8898d31ec604b8764d6/Include/internal/pycore_pylifecycle.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20247/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20247/files#diff-654f110e8bb3ccaa35433482309c4552cd8d74958bfb8b780daa6222f8ab2859
https://github.com/python/cpython/pull/20247/files#diff-654f110e8bb3ccaa35433482309c4552cd8d74958bfb8b780daa6222f8ab2859
Misc/NEWS.d/next/Core and Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rsthttps://github.com/python/cpython/pull/20247/files#diff-9b17c4d5a1b6d069c623add3c8c6d44436b650f16358ae8e50503981a5eccfe9
View file https://github.com/python/cpython/blob/d472b89c7cdf47236eb6e8898d31ec604b8764d6/Misc/NEWS.d/next/Core%20and%20Builtins/2020-05-20-01-17-34.bpo-40521.wvAehI.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20247/{{ revealButtonHref }}
Modules/gcmodule.chttps://github.com/python/cpython/pull/20247/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77
View file https://github.com/python/cpython/blob/d472b89c7cdf47236eb6e8898d31ec604b8764d6/Modules/gcmodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20247/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20247/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77
https://github.com/python/cpython/pull/20247/files#diff-3ba495fac5f4cc4a582187117515f3177ab91823c65a59af962fe180e06d9e77
Objects/tupleobject.chttps://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
View file https://github.com/python/cpython/blob/d472b89c7cdf47236eb6e8898d31ec604b8764d6/Objects/tupleobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20247/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
https://github.com/python/cpython/pull/20247/files#diff-1c580282bd10a8157cc81dd4a4658d4bb47f75ea476cd433bc7435913b33eb77
Python/pylifecycle.chttps://github.com/python/cpython/pull/20247/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
View file https://github.com/python/cpython/blob/d472b89c7cdf47236eb6e8898d31ec604b8764d6/Python/pylifecycle.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/20247/{{ revealButtonHref }}
https://github.com/python/cpython/pull/20247/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
https://github.com/python/cpython/pull/20247/files#diff-69223f5bb01f359a23246afbbf75b45c622e719424418d658674fbb6c2b36fad
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.