René's URL Explorer Experiment


Title: bpo-38328: Speed up the creation time of constant list and set literals. by brandtbucher · Pull Request #17114 · python/cpython · GitHub

Open Graph Title: bpo-38328: Speed up the creation time of constant list and set literals. by brandtbucher · Pull Request #17114 · python/cpython

X Title: bpo-38328: Speed up the creation time of constant list and set literals. by brandtbucher · Pull Request #17114 · python/cpython

Description: At @methane's request, here is an alternate PR that takes place in the compiler, not the peephole optimizer. It would replace both #16498 and #16878. I think I like this one better. https://bugs.p...

Open Graph Description: At @methane's request, here is an alternate PR that takes place in the compiler, not the peephole optimizer. It would replace both #16498 and #16878. I think I like this one better. https://bu...

X Description: At @methane's request, here is an alternate PR that takes place in the compiler, not the peephole optimizer. It would replace both #16498 and #16878. I think I like this one better. https:...

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

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:810d6d40-b61a-ac26-979c-ad4fca3f9e32
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F44:2DD042:429F32:5740E5:696B4126
html-safe-nonce44cf81408f0365aed2bf959809f95644559f0b54225a84e6d01358c768d20233
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjQ0OjJERDA0Mjo0MjlGMzI6NTc0MEU1OjY5NkI0MTI2IiwidmlzaXRvcl9pZCI6IjIzODg0ODI3NTU4OTc1NDA5MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacee38eaafb5b1f157f3464acd99647d3b29faaf2cb2a93a211e015fe313f417cd
hovercard-subject-tagpull_request:339772406
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/17114/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/7c45c93fb486ffb6a3dee63a963de2bf008fe63a175873f6c2358d9b95def334/python/cpython/pull/17114
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7c45c93fb486ffb6a3dee63a963de2bf008fe63a175873f6c2358d9b95def334/python/cpython/pull/17114
og:image:altAt @methane's request, here is an alternate PR that takes place in the compiler, not the peephole optimizer. It would replace both #16498 and #16878. I think I like this one better. https://bu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrandtbucher
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/17114#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F17114
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%2F17114
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/17114
Reloadhttps://github.com/python/cpython/pull/17114
Reloadhttps://github.com/python/cpython/pull/17114
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/17114
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/17114
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/17114#issue-comment-box
methanehttps://github.com/methane
python:masterhttps://github.com/python/cpython/tree/master
brandtbucher:compile-constant-collectionshttps://github.com/brandtbucher/cpython/tree/compile-constant-collections
bpo-38328: Speed up the creation time of constant list and set literals. https://github.com/python/cpython/pull/17114#top
methanehttps://github.com/methane
python:masterhttps://github.com/python/cpython/tree/master
brandtbucher:compile-constant-collectionshttps://github.com/brandtbucher/cpython/tree/compile-constant-collections
Conversation 11 https://github.com/python/cpython/pull/17114
Commits 12 https://github.com/python/cpython/pull/17114/commits
Checks 0 https://github.com/python/cpython/pull/17114/checks
Files changed https://github.com/python/cpython/pull/17114/files
Please reload this pagehttps://github.com/python/cpython/pull/17114
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
Nov 12, 2019https://github.com/python/cpython/pull/17114#issue-521383591
Please reload this pagehttps://github.com/python/cpython/pull/17114
@methanehttps://github.com/methane
#16498https://github.com/python/cpython/pull/16498
#16878https://github.com/python/cpython/pull/16878
https://bugs.python.org/issue38328https://bugs.python.org/issue38328
Please reload this pagehttps://github.com/python/cpython/pull/17114
brandtbucherhttps://github.com/brandtbucher
November 11, 2019 23:23https://github.com/python/cpython/pull/17114#commits-pushed-f556e5e
https://github.com/brandtbucher
Constify and unpack constant list and set literals.https://github.com/python/cpython/pull/17114/commits/f556e5ece2f831d32c40c80e2fc2e7c489217970
f556e5ehttps://github.com/python/cpython/pull/17114/commits/f556e5ece2f831d32c40c80e2fc2e7c489217970
https://github.com/brandtbucher
Regenerate importlib.https://github.com/python/cpython/pull/17114/commits/f2f77fa731480baa9568a62e7ff3b0e46f1adfa6
f2f77fahttps://github.com/python/cpython/pull/17114/commits/f2f77fa731480baa9568a62e7ff3b0e46f1adfa6
https://github.com/brandtbucher
Resize overallocated list.https://github.com/python/cpython/pull/17114/commits/50066466a5fe65cc65120a445f9d5de491ec6ab3
5006646https://github.com/python/cpython/pull/17114/commits/50066466a5fe65cc65120a445f9d5de491ec6ab3
https://github.com/brandtbucher
Branch on outer op, not single op.https://github.com/python/cpython/pull/17114/commits/bebcf002ea0b2713e0032db97ea8b9da12fb6f39
bebcf00https://github.com/python/cpython/pull/17114/commits/bebcf002ea0b2713e0032db97ea8b9da12fb6f39
https://github.com/brandtbucher
Handle PyFrozenSet_New failure.https://github.com/python/cpython/pull/17114/commits/2af72df2766dbfbfd7138b1b818731f09d8518ef
2af72dfhttps://github.com/python/cpython/pull/17114/commits/2af72df2766dbfbfd7138b1b818731f09d8518ef
https://github.com/brandtbucher
Avoid name reuse.https://github.com/python/cpython/pull/17114/commits/58c96cfd13e0be55e9ae7f56fca3e9342200ebf9
58c96cfhttps://github.com/python/cpython/pull/17114/commits/58c96cfd13e0be55e9ae7f56fca3e9342200ebf9
https://github.com/brandtbucher
Add NEWS entry.https://github.com/python/cpython/pull/17114/commits/6627e15b82c40342ec1fd69784b1b5102dc38546
6627e15https://github.com/python/cpython/pull/17114/commits/6627e15b82c40342ec1fd69784b1b5102dc38546
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Nov 12, 2019https://github.com/python/cpython/pull/17114#event-2790445445
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Nov 12, 2019https://github.com/python/cpython/pull/17114#event-2790445543
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
Nov 12, 2019https://github.com/python/cpython/pull/17114#event-2790451047
https://github.com/brandtbucher
Remove random cache file.https://github.com/python/cpython/pull/17114/commits/d61d204782b81e3782b981d922c6eb7af3e5de6b
d61d204https://github.com/python/cpython/pull/17114/commits/d61d204782b81e3782b981d922c6eb7af3e5de6b
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
Nov 18, 2019https://github.com/python/cpython/pull/17114#issuecomment-554884481
@benjaminphttps://github.com/benjaminp
Please reload this pagehttps://github.com/python/cpython/pull/17114
https://github.com/methane
methanehttps://github.com/methane
Nov 18, 2019 https://github.com/python/cpython/pull/17114#pullrequestreview-318134790
View reviewed changes https://github.com/python/cpython/pull/17114/files/d61d204782b81e3782b981d922c6eb7af3e5de6b
Lib/test/test_sys.pyhttps://github.com/python/cpython/pull/17114/files/d61d204782b81e3782b981d922c6eb7af3e5de6b#diff-f3ae0e3fbb12fe0717e2d9d8801f5d9f3091c34254d1302b228422d7d07fdc5d
Please reload this pagehttps://github.com/python/cpython/pull/17114
https://github.com/methane
methanehttps://github.com/methane
Nov 18, 2019 https://github.com/python/cpython/pull/17114#pullrequestreview-318143666
View reviewed changes https://github.com/python/cpython/pull/17114/files/d61d204782b81e3782b981d922c6eb7af3e5de6b
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Nov 18, 2019https://github.com/python/cpython/pull/17114#event-2806463579
https://github.com/methane
methanehttps://github.com/methane
Nov 25, 2019https://github.com/python/cpython/pull/17114#issuecomment-558039509
Please reload this pagehttps://github.com/python/cpython/pull/17114
https://github.com/brandtbucher
Catch up with master.https://github.com/python/cpython/pull/17114/commits/c140a12576d8c9f3dd11c7bf20fa1454bbd6b35f
c140a12https://github.com/python/cpython/pull/17114/commits/c140a12576d8c9f3dd11c7bf20fa1454bbd6b35f
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
Nov 25, 2019https://github.com/python/cpython/pull/17114#issuecomment-558054441
@methanehttps://github.com/methane
Please reload this pagehttps://github.com/python/cpython/pull/17114
https://github.com/methane
Update 2019-11-11-23-44-15.bpo-38328.IFrrjq.rsthttps://github.com/python/cpython/pull/17114/commits/f40595731ffaa074e52ba3a7f0a9c529a1f4c3bb
f405957https://github.com/python/cpython/pull/17114/commits/f40595731ffaa074e52ba3a7f0a9c529a1f4c3bb
https://github.com/methane
methanehttps://github.com/methane
Nov 25, 2019 https://github.com/python/cpython/pull/17114#pullrequestreview-322122800
View reviewed changes https://github.com/python/cpython/pull/17114/files/f40595731ffaa074e52ba3a7f0a9c529a1f4c3bb
Python/compile.chttps://github.com/python/cpython/pull/17114/files/f40595731ffaa074e52ba3a7f0a9c529a1f4c3bb#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057
methanehttps://github.com/methane
Nov 25, 2019https://github.com/python/cpython/pull/17114#discussion_r350055932
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/17114
brandtbucherhttps://github.com/brandtbucher
Nov 25, 2019https://github.com/python/cpython/pull/17114#discussion_r350066261
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/17114
brandtbucherhttps://github.com/brandtbucher
Nov 25, 2019https://github.com/python/cpython/pull/17114#discussion_r350068081
Please reload this pagehttps://github.com/python/cpython/pull/17114
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/17114
methanehttps://github.com/methane
Nov 25, 2019https://github.com/python/cpython/pull/17114#discussion_r350075881
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/17114
brandtbucherhttps://github.com/brandtbucher
Nov 25, 2019https://github.com/python/cpython/pull/17114#discussion_r350303359
Please reload this pagehttps://github.com/python/cpython/pull/17114
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@methanehttps://github.com/methane
Please reload this pagehttps://github.com/python/cpython/pull/17114
brandtbucherhttps://github.com/brandtbucher
November 25, 2019 08:51https://github.com/python/cpython/pull/17114#commits-pushed-5285d67
https://github.com/brandtbucher
Bump threshold to enable optimization.https://github.com/python/cpython/pull/17114/commits/5285d679856624889d06dff795e34b0c7f4e042a
5285d67https://github.com/python/cpython/pull/17114/commits/5285d679856624889d06dff795e34b0c7f4e042a
https://github.com/brandtbucher
Regenerate importlib.https://github.com/python/cpython/pull/17114/commits/3dfd17c2864f82fbe86e31524ede31f2450c30f0
3dfd17chttps://github.com/python/cpython/pull/17114/commits/3dfd17c2864f82fbe86e31524ede31f2450c30f0
https://github.com/methane
methanehttps://github.com/methane
6dd9b64https://github.com/python/cpython/commit/6dd9b64770af8905bef293c81d541eaaf8d8df52
Nov 26, 2019https://github.com/python/cpython/pull/17114#event-2830651519
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Nov 26, 2019https://github.com/python/cpython/pull/17114#event-2830651607
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
Nov 26, 2019https://github.com/python/cpython/pull/17114#issuecomment-558485451
@methanehttps://github.com/methane
Please reload this pagehttps://github.com/python/cpython/pull/17114
jacobneiltaylorhttps://github.com/jacobneiltaylor
Dec 5, 2019 https://github.com/python/cpython/pull/17114#ref-commit-d83a5c4
https://github.com/brandtbucher
bpo-38328: Speed up the creation time of constant list and set displa…https://github.com/jacobneiltaylor/cpython/commit/d83a5c4655e69a450150986619d1411bb87c2f3f
d83a5c4https://github.com/jacobneiltaylor/cpython/commit/d83a5c4655e69a450150986619d1411bb87c2f3f
pythonGH-17114https://github.com/python/cpython/pull/17114
shihai1991https://github.com/shihai1991
Jan 31, 2020 https://github.com/python/cpython/pull/17114#ref-commit-14dbc5d
https://github.com/brandtbucher
https://github.com/shihai1991
bpo-38328: Speed up the creation time of constant list and set displa…https://github.com/shihai1991/cpython/commit/14dbc5d83338361a9a9387a79e748e27d6f219a1
14dbc5dhttps://github.com/shihai1991/cpython/commit/14dbc5d83338361a9a9387a79e748e27d6f219a1
pythonGH-17114https://github.com/python/cpython/pull/17114
https://github.com/chadnetzer
chadnetzerhttps://github.com/chadnetzer
Mar 21, 2021 https://github.com/python/cpython/pull/17114#ref-pullrequest-836972837
bpo-43574: Dont overallocate list literals #24954 https://github.com/python/cpython/pull/24954
https://github.com/brandtbucher
brandtbucherhttps://github.com/brandtbucher
July 21, 2022 20:00https://github.com/python/cpython/pull/17114#event-7041103197
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%2F17114
https://github.com/methane
methane https://github.com/methane
https://github.com/python/cpython/pull/17114/files/f40595731ffaa074e52ba3a7f0a9c529a1f4c3bb
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
Please reload this pagehttps://github.com/python/cpython/pull/17114
https://github.com/brandtbucher
https://github.com/methane
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
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.