| react-profiling | 0 |
| react-import-map | react,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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:32a5b5d4-8714-4264-67ce-4d6b579a66d8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C3B0:21DFED:E301A9:11EB970:6B023647 |
| html-safe-nonce | 839b8fa5f722dd3c805bd1d584a66a760c50a867d36bbc131a89e3b09a657b09 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0IwOjIxREZFRDpFMzAxQTk6MTFFQjk3MDo2QjAyMzY0NyIsInZpc2l0b3JfaWQiOiI1NDU2MzkxMzI0Nzk3NjQwMzkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | abe27f79c472a6f8f45df8e37265f0bfc981d7f8dc3ff9a976bcafe334ca8320 |
| hovercard-subject-tag | pull_request:3449899504 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/146456/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/b0ef7bf76f5cd80845eb3bc393f1c85ad246d15d56f877f3af4c776d9d45b2ed/python/cpython/pull/146456 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b0ef7bf76f5cd80845eb3bc393f1c85ad246d15d56f877f3af4c776d9d45b2ed/python/cpython/pull/146456 |
| og:image:alt | Fix O(N²) performance regression in add_const() introduced by moving constant folding from AST to CFG optimizer (gh-126835).
Problem
After gh-130769 moved tuple folding to CFG, fold_tuple_of_consta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zSirius |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/python/cpython/pull/146456#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146456 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146456 |
| 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 |
| Reload | https://github.com/python/cpython/pull/146456 |
| Reload | https://github.com/python/cpython/pull/146456 |
| Reload | https://github.com/python/cpython/pull/146456 |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| https://github.com/python/cpython |
| Eclips4 | https://github.com/Eclips4 |
| python:main | https://github.com/python/cpython/tree/main |
| zSirius:fix-add-const-quadratic | https://github.com/zSirius/cpython/tree/fix-add-const-quadratic |
| Conversation | https://github.com/python/cpython/pull/146456 |
| Commits3 (3) | https://github.com/python/cpython/pull/146456/commits |
| Checks | https://github.com/python/cpython/pull/146456/checks |
| Files changed | https://github.com/python/cpython/pull/146456/files |
| gh-146455: Fix O(N²) in add_const() after constant folding moved to CFG | https://github.com/python/cpython/pull/146456#top |
| Eclips4 | https://github.com/Eclips4 |
| python:main | https://github.com/python/cpython/tree/main |
| zSirius:fix-add-const-quadratic | https://github.com/zSirius/cpython/tree/fix-add-const-quadratic |
|
| https://github.com/zSirius |
| zSirius | https://github.com/zSirius |
| Mar 26, 2026 | https://github.com/python/cpython/pull/146456#issue-4141823838 |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| gh-126835 | https://github.com/python/cpython/issues/126835 |
| gh-130769 | https://github.com/python/cpython/pull/130769 |
| gh-129550 | https://github.com/python/cpython/pull/129550 |
| Performance regression: O(N²) compile time for large constant tuples after const folding moved to CFG #146455 | https://github.com/python/cpython/issues/146455 |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| pythongh-146455 | https://github.com/python/cpython/issues/146455 |
| : Fix O(N²) in add_const() after constant folding move… | https://github.com/python/cpython/pull/146456/commits/2a6713610f7d15143b3ba2b2497d9c3f8b487deb |
| 2a67136 | https://github.com/python/cpython/pull/146456/commits/2a6713610f7d15143b3ba2b2497d9c3f8b487deb |
| pythongh-126835 | https://github.com/python/cpython/issues/126835 |
| https://github.com/zSirius |
| zSirius | https://github.com/zSirius |
| iritkatriel | https://github.com/iritkatriel |
| markshannon | https://github.com/markshannon |
| code owners | https://github.com/python/cpython/blob/8e1469c952fb9db57efdcdce459fd6f78fbaeea3/.github/CODEOWNERS#L234 |
| March 26, 2026 08:39 | https://github.com/python/cpython/pull/146456#event-23923120274 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
| Mar 26, 2026 | https://github.com/python/cpython/pull/146456#issuecomment-4132708693 |
| require a NEWS entry | https://devguide.python.org/core-developers/committing/#updating-news-and-what-s-new-in-python |
| blurb_it | https://blurb-it.herokuapp.com |
| blurb | https://pypi.org/project/blurb/ |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
Mar 26, 2026
| https://github.com/python/cpython/pull/146456#ref-issue-4141784480 |
|
Performance regression: O(N²) compile time for large constant tuples after const folding moved to CFG
#146455
| https://github.com/python/cpython/issues/146455 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Mar 26, 2026 | https://github.com/python/cpython/pull/146456#event-23923124797 |
| 📜🤖 Added by blurb_it. | https://github.com/python/cpython/pull/146456/commits/cebc9fc9a01910c381744bf8b867f60bc60d3cdf |
| cebc9fc | https://github.com/python/cpython/pull/146456/commits/cebc9fc9a01910c381744bf8b867f60bc60d3cdf |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
| March 26, 2026 13:06 | https://github.com/python/cpython/pull/146456#event-23932516028 |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
|
Apr 21, 2026
| https://github.com/python/cpython/pull/146456#pullrequestreview-4149278742 |
|
View reviewed changes
| https://github.com/python/cpython/pull/146456/files/cebc9fc9a01910c381744bf8b867f60bc60d3cdf |
| Python/flowgraph.c | https://github.com/python/cpython/pull/146456/files/cebc9fc9a01910c381744bf8b867f60bc60d3cdf#diff-3cbf15668c31488528b7ab0f903c674a0ecf550f4f53c1be6cf8cd965246c2a0 |
| Eclips4 | https://github.com/Eclips4 |
| Apr 21, 2026 | https://github.com/python/cpython/pull/146456#discussion_r3118887841 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| zSirius | https://github.com/zSirius |
| Apr 22, 2026 | https://github.com/python/cpython/pull/146456#discussion_r3121939851 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
|
Apr 21, 2026
| https://github.com/python/cpython/pull/146456#pullrequestreview-4149280816 |
|
View reviewed changes
| https://github.com/python/cpython/pull/146456/files/cebc9fc9a01910c381744bf8b867f60bc60d3cdf |
| Python/flowgraph.c | https://github.com/python/cpython/pull/146456/files/cebc9fc9a01910c381744bf8b867f60bc60d3cdf#diff-3cbf15668c31488528b7ab0f903c674a0ecf550f4f53c1be6cf8cd965246c2a0 |
| Eclips4 | https://github.com/Eclips4 |
| Apr 21, 2026 | https://github.com/python/cpython/pull/146456#discussion_r3118889955 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| Remove unnecessary comments | https://github.com/python/cpython/pull/146456/commits/ef2e494cc8f29b049134535fcedc590a9b40063a |
| ef2e494 | https://github.com/python/cpython/pull/146456/commits/ef2e494cc8f29b049134535fcedc590a9b40063a |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
| April 22, 2026 16:21 | https://github.com/python/cpython/pull/146456#event-24763545811 |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
|
Apr 26, 2026
| https://github.com/python/cpython/pull/146456#ref-issue-4299535918 |
|
sets with >30 elements not constant-folded in in/not in and for loops
#148817
| https://github.com/python/cpython/issues/148817 |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#issuecomment-4321978298 |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#issuecomment-4321996598 |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
| 5d41632 | https://github.com/python/cpython/commit/5d416324c56cd6f262fa123f41b97b48631bea79 |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#event-24879218082 |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
|
awaiting review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22 |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#event-24879218667 |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#issuecomment-4322000259 |
| @zSirius | https://github.com/zSirius |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
|
needs backport to 3.14
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22 |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#event-24879224642 |
| https://github.com/apps/miss-islington-app |
| miss-islington-app | https://github.com/apps/miss-islington-app |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#issuecomment-4322001052 |
| @zSirius | https://github.com/zSirius |
| @Eclips4 | https://github.com/Eclips4 |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://github.com/apps/bedevere-app |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#issuecomment-4322001288 |
| GH-149011 | https://github.com/python/cpython/pull/149011 |
| 3.14 branch | https://github.com/python/cpython/tree/3.14 |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| https://github.com/apps/bedevere-app |
| bedevere-app | https://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 |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#event-24879226537 |
| https://github.com/Eclips4 |
| Eclips4 | https://github.com/Eclips4 |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#issuecomment-4322004155 |
| @zSirius | https://github.com/zSirius |
| #149011 | https://github.com/python/cpython/pull/149011 |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| https://github.com/iritkatriel |
| iritkatriel | https://github.com/iritkatriel |
|
Apr 26, 2026
| https://github.com/python/cpython/pull/146456#pullrequestreview-4176905554 |
|
View reviewed changes
| https://github.com/python/cpython/pull/146456/files/ef2e494cc8f29b049134535fcedc590a9b40063a |
| Python/flowgraph.c | https://github.com/python/cpython/pull/146456/files/ef2e494cc8f29b049134535fcedc590a9b40063a#diff-3cbf15668c31488528b7ab0f903c674a0ecf550f4f53c1be6cf8cd965246c2a0 |
| iritkatriel | https://github.com/iritkatriel |
| Apr 26, 2026 | https://github.com/python/cpython/pull/146456#discussion_r3143460829 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| Eclips4 | https://github.com/Eclips4 |
|
Apr 26, 2026
| https://github.com/python/cpython/pull/146456#ref-commit-78c5e54 |
|
| https://github.com/miss-islington |
|
| https://github.com/zSirius |
| [3.14] | https://github.com/python/cpython/commit/78c5e54b4fd5798d8b74b901c34539bb09a5a064 |
| gh-146455 | https://github.com/python/cpython/issues/146455 |
| : Fix O(N²) in add_const() after constant folding mov… | https://github.com/python/cpython/commit/78c5e54b4fd5798d8b74b901c34539bb09a5a064 |
| 78c5e54 | https://github.com/python/cpython/commit/78c5e54b4fd5798d8b74b901c34539bb09a5a064 |
| GH-146456 | https://github.com/python/cpython/pull/146456 |
| #149011 | https://github.com/python/cpython/pull/149011 |
| gh-146455 | https://github.com/python/cpython/issues/146455 |
| GH-146456 | https://github.com/python/cpython/pull/146456 |
| gh-126835 | https://github.com/python/cpython/issues/126835 |
| 5d41632 | https://github.com/python/cpython/commit/5d416324c56cd6f262fa123f41b97b48631bea79 |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F146456 |
|
| https://github.com/iritkatriel |
|
iritkatriel
| https://github.com/iritkatriel |
|
| https://github.com/python/cpython/pull/146456/files/ef2e494cc8f29b049134535fcedc590a9b40063a |
|
| https://github.com/markshannon |
|
markshannon
| https://github.com/markshannon |
|
| https://github.com/Eclips4 |
|
Eclips4
| https://github.com/Eclips4 |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
| Please reload this page | https://github.com/python/cpython/pull/146456 |
|
| https://github.com/zSirius |
|
| https://github.com/Eclips4 |
|
| https://github.com/iritkatriel |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |