René's URL Explorer Experiment


Title: bpo-40902: Speed up PEG parser by using Dijkstra's shunting yard algorithm by pablogsal · Pull Request #20696 · python/cpython · GitHub

Open Graph Title: bpo-40902: Speed up PEG parser by using Dijkstra's shunting yard algorithm by pablogsal · Pull Request #20696 · python/cpython

X Title: bpo-40902: Speed up PEG parser by using Dijkstra's shunting yard algorithm by pablogsal · Pull Request #20696 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: https://bugs.python.org/issue40902

X Description: https://bugs.python.org/issue40902

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:a438af50-df31-2bb5-8dfb-efd70962c8bc
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA506:C7E79:1DE7FEE:2BA1DC2:6A5645D9
html-safe-nonce458cd1a3604df83e568a5562e6d05d33075edd3bff4b239004d30ebf78d8dfb0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTA2OkM3RTc5OjFERTdGRUU6MkJBMURDMjo2QTU2NDVEOSIsInZpc2l0b3JfaWQiOiIxNjk1NDAxNjU0MjY5Mzk2NDQxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9a7e7f10ac0f2d2740561029a3a14b2e1bc3b9ab1b842426b52725e2ccc9d865
hovercard-subject-tagpull_request:430423760
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/20696/commits
twitter:imagehttps://opengraph.githubassets.com/dd73e392b5aabfe24e906c6fa020c2fea4f26a5e13f308fd5e1a93f248c6092a/python/cpython/pull/20696
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dd73e392b5aabfe24e906c6fa020c2fea4f26a5e13f308fd5e1a93f248c6092a/python/cpython/pull/20696
og:image:althttps://bugs.python.org/issue40902
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepablogsal
hostnamegithub.com
expected-hostnamegithub.com
None96d96c6ad1e3234907759a5e634942d2ca0aded8a6ec1693a59d0f2c59c0dac9
turbo-cache-controlno-cache
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
releasef0d7fddec181d430daaf48494eb476abffad4d37
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/20696/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20696%2Fcommits
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F20696%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/20696/commits
Reloadhttps://github.com/python/cpython/pull/20696/commits
Reloadhttps://github.com/python/cpython/pull/20696/commits
Please reload this pagehttps://github.com/python/cpython/pull/20696/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/20696/commits
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
pablogsalhttps://github.com/pablogsal
python:masterhttps://github.com/python/cpython/tree/master
we-like-parsers:operator_precedencehttps://github.com/we-like-parsers/cpython/tree/operator_precedence
Conversationhttps://github.com/python/cpython/pull/20696
Commits19 (19)https://github.com/python/cpython/pull/20696/commits
Checkshttps://github.com/python/cpython/pull/20696/checks
Files changedhttps://github.com/python/cpython/pull/20696/files
bpo-40902: Speed up PEG parser by using Dijkstra's shunting yard algorithmhttps://github.com/python/cpython/pull/20696/commits#top
pablogsalhttps://github.com/pablogsal
python:masterhttps://github.com/python/cpython/tree/master
we-like-parsers:operator_precedencehttps://github.com/we-like-parsers/cpython/tree/operator_precedence
WIP of operator precedencehttps://github.com/python/cpython/pull/20696/commits/83337b3aedf25d3a51eca910b7536eaedbeeb576
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
83337b3https://github.com/python/cpython/pull/20696/commits/83337b3aedf25d3a51eca910b7536eaedbeeb576
https://github.com/python/cpython/tree/83337b3aedf25d3a51eca910b7536eaedbeeb576
Generate precedence tablehttps://github.com/python/cpython/pull/20696/commits/9e25541c01111f2a6b144ef47f5f0c8197d76a4b
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
9e25541https://github.com/python/cpython/pull/20696/commits/9e25541c01111f2a6b144ef47f5f0c8197d76a4b
https://github.com/python/cpython/tree/9e25541c01111f2a6b144ef47f5f0c8197d76a4b
Fix test_ast and test_type_comments and address feedbackhttps://github.com/python/cpython/pull/20696/commits/0366b968cecd29ff1d6012aa4c8a43cdcc3eef8f
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
0366b96https://github.com/python/cpython/pull/20696/commits/0366b968cecd29ff1d6012aa4c8a43cdcc3eef8f
https://github.com/python/cpython/tree/0366b968cecd29ff1d6012aa4c8a43cdcc3eef8f
Use a struct to keep track of the augmented infohttps://github.com/python/cpython/pull/20696/commits/2f979f94d9a192a6961c57c0971d2b3a4c249a2b
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
2f979f9https://github.com/python/cpython/pull/20696/commits/2f979f94d9a192a6961c57c0971d2b3a4c249a2b
https://github.com/python/cpython/tree/2f979f94d9a192a6961c57c0971d2b3a4c249a2b
Remove the macro into a static inline functionhttps://github.com/python/cpython/pull/20696/commits/c51f1ad6c78060bc4b20c64c5e7e358712a0dbbd
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
c51f1adhttps://github.com/python/cpython/pull/20696/commits/c51f1ad6c78060bc4b20c64c5e7e358712a0dbbd
https://github.com/python/cpython/tree/c51f1ad6c78060bc4b20c64c5e7e358712a0dbbd
Minor cleanuphttps://github.com/python/cpython/pull/20696/commits/d0e3ef58dc86c13077d92a3e0330a60a9b3321ff
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
d0e3ef5https://github.com/python/cpython/pull/20696/commits/d0e3ef58dc86c13077d92a3e0330a60a9b3321ff
https://github.com/python/cpython/tree/d0e3ef58dc86c13077d92a3e0330a60a9b3321ff
Replace operators[i] with values[i].operhttps://github.com/python/cpython/pull/20696/commits/8f1243745c42a91dfc1c1d10a38c605f0682381e
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
8f12437https://github.com/python/cpython/pull/20696/commits/8f1243745c42a91dfc1c1d10a38c605f0682381e
https://github.com/python/cpython/tree/8f1243745c42a91dfc1c1d10a38c605f0682381e
Eliminate stack_pos -- it's always output_pos - 1https://github.com/python/cpython/pull/20696/commits/2372f5e02bd3e5a02ea7190252375f3f4e62cd8a
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
2372f5ehttps://github.com/python/cpython/pull/20696/commits/2372f5e02bd3e5a02ea7190252375f3f4e62cd8a
https://github.com/python/cpython/tree/2372f5e02bd3e5a02ea7190252375f3f4e62cd8a
Tiny cleanuphttps://github.com/python/cpython/pull/20696/commits/9398d8f59ca3bf9913da3a6e6c171ad728807805
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
9398d8fhttps://github.com/python/cpython/pull/20696/commits/9398d8f59ca3bf9913da3a6e6c171ad728807805
https://github.com/python/cpython/tree/9398d8f59ca3bf9913da3a6e6c171ad728807805
Rename values->stack, output_ptr->stack_tophttps://github.com/python/cpython/pull/20696/commits/1554dea1db567ff9a97f05e3eb918186acee77c6
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
1554deahttps://github.com/python/cpython/pull/20696/commits/1554dea1db567ff9a97f05e3eb918186acee77c6
https://github.com/python/cpython/tree/1554dea1db567ff9a97f05e3eb918186acee77c6
Use member assignments instead of creating a new ValueItemhttps://github.com/python/cpython/pull/20696/commits/0b6f84aa01b3b069cf33739aca26d508707f7ccc
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
0b6f84ahttps://github.com/python/cpython/pull/20696/commits/0b6f84aa01b3b069cf33739aca26d508707f7ccc
https://github.com/python/cpython/tree/0b6f84aa01b3b069cf33739aca26d508707f7ccc
Slight tweak of _reduction_step()https://github.com/python/cpython/pull/20696/commits/8dd799be2abd8c029a9e1f832432b3bb8baf6e80
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
8dd799bhttps://github.com/python/cpython/pull/20696/commits/8dd799be2abd8c029a9e1f832432b3bb8baf6e80
https://github.com/python/cpython/tree/8dd799be2abd8c029a9e1f832432b3bb8baf6e80
Raise for now if the associativity of the operators is not 'left'https://github.com/python/cpython/pull/20696/commits/08e588bc41e2f18928dc2fbd6f1e827f2cadb838
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
08e588bhttps://github.com/python/cpython/pull/20696/commits/08e588bc41e2f18928dc2fbd6f1e827f2cadb838
https://github.com/python/cpython/tree/08e588bc41e2f18928dc2fbd6f1e827f2cadb838
Add a huge block comment explaining the operator precedence parserhttps://github.com/python/cpython/pull/20696/commits/882c74095bd0d34e226ee6b9a3bf6a3177ee9ba1
https://github.com/gvanrossum
gvanrossumhttps://github.com/python/cpython/commits?author=gvanrossum
882c740https://github.com/python/cpython/pull/20696/commits/882c74095bd0d34e226ee6b9a3bf6a3177ee9ba1
https://github.com/python/cpython/tree/882c74095bd0d34e226ee6b9a3bf6a3177ee9ba1
Merge remote-tracking branch 'upstream/master' into operator_precedencehttps://github.com/python/cpython/pull/20696/commits/13de6ab48ecfcb8d69fc867f7d3303251f3c9398
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
13de6abhttps://github.com/python/cpython/pull/20696/commits/13de6ab48ecfcb8d69fc867f7d3303251f3c9398
https://github.com/python/cpython/tree/13de6ab48ecfcb8d69fc867f7d3303251f3c9398
Implement right-associative operatorshttps://github.com/python/cpython/pull/20696/commits/10bc6204c6d2093d1fd8efe1ec0ad2bcf927ab32
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
10bc620https://github.com/python/cpython/pull/20696/commits/10bc6204c6d2093d1fd8efe1ec0ad2bcf927ab32
https://github.com/python/cpython/tree/10bc6204c6d2093d1fd8efe1ec0ad2bcf927ab32
Better error handlinghttps://github.com/python/cpython/pull/20696/commits/5320f37c84d8b15239dd81ef4d84c02821027f25
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
5320f37https://github.com/python/cpython/pull/20696/commits/5320f37c84d8b15239dd81ef4d84c02821027f25
https://github.com/python/cpython/tree/5320f37c84d8b15239dd81ef4d84c02821027f25
Remove TODO itemhttps://github.com/python/cpython/pull/20696/commits/fe2d89c3f3c6caa2f652050c8855bedd0c4db4a5
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
fe2d89chttps://github.com/python/cpython/pull/20696/commits/fe2d89c3f3c6caa2f652050c8855bedd0c4db4a5
https://github.com/python/cpython/tree/fe2d89c3f3c6caa2f652050c8855bedd0c4db4a5
Do not use yet '**' in the operators list in the grammarhttps://github.com/python/cpython/pull/20696/commits/6fee838543146eae432f0938cb10b9899991a14a
https://github.com/pablogsal
pablogsalhttps://github.com/python/cpython/commits?author=pablogsal
6fee838https://github.com/python/cpython/pull/20696/commits/6fee838543146eae432f0938cb10b9899991a14a
https://github.com/python/cpython/tree/6fee838543146eae432f0938cb10b9899991a14a
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.