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/_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:6bf18e89-b5d7-dea7-a56c-6f4eda520ae3
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA376:260F42:204D1F8:2E79289:6A566213
html-safe-nonce6333f5effe1a1c3d6f6cc22aa03932b77b55c8b8f7f63b6be170b53f1f716800
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzc2OjI2MEY0MjoyMDREMUY4OjJFNzkyODk6NkE1NjYyMTMiLCJ2aXNpdG9yX2lkIjoiMjc2MDc4MTg5NDIwMzYzMDA5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac035c7033095bb20780810e223d7a6b838e8a8a443d041ffecdcfc0301b950587
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///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/20696/pull_request_layout
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
None6a3afe34dff341ad10912db44becf282289d7f2af20576241738530fbb28de01
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
releaseb71002134df95575e9f6c2945a64d454b0be181e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/20696#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20696
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
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/20696
Reloadhttps://github.com/python/cpython/pull/20696
Reloadhttps://github.com/python/cpython/pull/20696
Please reload this pagehttps://github.com/python/cpython/pull/20696
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/20696
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#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
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jun 7, 2020https://github.com/python/cpython/pull/20696#issue-633808258
Please reload this pagehttps://github.com/python/cpython/pull/20696
https://bugs.python.org/issue40902https://bugs.python.org/issue40902
Please reload this pagehttps://github.com/python/cpython/pull/20696
pablogsalhttps://github.com/pablogsal
June 7, 2020 01:52https://github.com/python/cpython/pull/20696#commits-pushed-83337b3
https://github.com/pablogsal
WIP of operator precedencehttps://github.com/python/cpython/pull/20696/commits/83337b3aedf25d3a51eca910b7536eaedbeeb576
83337b3https://github.com/python/cpython/pull/20696/commits/83337b3aedf25d3a51eca910b7536eaedbeeb576
https://github.com/pablogsal
Generate precedence tablehttps://github.com/python/cpython/pull/20696/commits/9e25541c01111f2a6b144ef47f5f0c8197d76a4b
9e25541https://github.com/python/cpython/pull/20696/commits/9e25541c01111f2a6b144ef47f5f0c8197d76a4b
https://github.com/pablogsal
Fix test_ast and test_type_comments and address feedbackhttps://github.com/python/cpython/pull/20696/commits/0366b968cecd29ff1d6012aa4c8a43cdcc3eef8f
0366b96https://github.com/python/cpython/pull/20696/commits/0366b968cecd29ff1d6012aa4c8a43cdcc3eef8f
https://github.com/pablogsal
Use a struct to keep track of the augmented infohttps://github.com/python/cpython/pull/20696/commits/2f979f94d9a192a6961c57c0971d2b3a4c249a2b
2f979f9https://github.com/python/cpython/pull/20696/commits/2f979f94d9a192a6961c57c0971d2b3a4c249a2b
https://github.com/pablogsal
Remove the macro into a static inline functionhttps://github.com/python/cpython/pull/20696/commits/c51f1ad6c78060bc4b20c64c5e7e358712a0dbbd
c51f1adhttps://github.com/python/cpython/pull/20696/commits/c51f1ad6c78060bc4b20c64c5e7e358712a0dbbd
https://github.com/gvanrossum
Minor cleanuphttps://github.com/python/cpython/pull/20696/commits/d0e3ef58dc86c13077d92a3e0330a60a9b3321ff
d0e3ef5https://github.com/python/cpython/pull/20696/commits/d0e3ef58dc86c13077d92a3e0330a60a9b3321ff
https://github.com/gvanrossum
Replace operators[i] with values[i].operhttps://github.com/python/cpython/pull/20696/commits/8f1243745c42a91dfc1c1d10a38c605f0682381e
8f12437https://github.com/python/cpython/pull/20696/commits/8f1243745c42a91dfc1c1d10a38c605f0682381e
https://github.com/gvanrossum
Eliminate stack_pos -- it's always output_pos - 1https://github.com/python/cpython/pull/20696/commits/2372f5e02bd3e5a02ea7190252375f3f4e62cd8a
2372f5ehttps://github.com/python/cpython/pull/20696/commits/2372f5e02bd3e5a02ea7190252375f3f4e62cd8a
https://github.com/gvanrossum
Tiny cleanuphttps://github.com/python/cpython/pull/20696/commits/9398d8f59ca3bf9913da3a6e6c171ad728807805
9398d8fhttps://github.com/python/cpython/pull/20696/commits/9398d8f59ca3bf9913da3a6e6c171ad728807805
https://github.com/gvanrossum
Rename values->stack, output_ptr->stack_tophttps://github.com/python/cpython/pull/20696/commits/1554dea1db567ff9a97f05e3eb918186acee77c6
1554deahttps://github.com/python/cpython/pull/20696/commits/1554dea1db567ff9a97f05e3eb918186acee77c6
https://github.com/gvanrossum
Use member assignments instead of creating a new ValueItemhttps://github.com/python/cpython/pull/20696/commits/0b6f84aa01b3b069cf33739aca26d508707f7ccc
0b6f84ahttps://github.com/python/cpython/pull/20696/commits/0b6f84aa01b3b069cf33739aca26d508707f7ccc
https://github.com/gvanrossum
Slight tweak of _reduction_step()https://github.com/python/cpython/pull/20696/commits/8dd799be2abd8c029a9e1f832432b3bb8baf6e80
8dd799bhttps://github.com/python/cpython/pull/20696/commits/8dd799be2abd8c029a9e1f832432b3bb8baf6e80
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
Jun 7, 2020https://github.com/python/cpython/pull/20696#event-3417281428
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 7, 2020https://github.com/python/cpython/pull/20696#event-3417281486
pablogsalhttps://github.com/pablogsal
June 7, 2020 23:13https://github.com/python/cpython/pull/20696#commits-pushed-08e588b
https://github.com/pablogsal
Raise for now if the associativity of the operators is not 'left'https://github.com/python/cpython/pull/20696/commits/08e588bc41e2f18928dc2fbd6f1e827f2cadb838
08e588bhttps://github.com/python/cpython/pull/20696/commits/08e588bc41e2f18928dc2fbd6f1e827f2cadb838
https://github.com/gvanrossum
Add a huge block comment explaining the operator precedence parserhttps://github.com/python/cpython/pull/20696/commits/882c74095bd0d34e226ee6b9a3bf6a3177ee9ba1
882c740https://github.com/python/cpython/pull/20696/commits/882c74095bd0d34e226ee6b9a3bf6a3177ee9ba1
Operator precedence we-like-parsers/cpython#133 https://github.com/we-like-parsers/cpython/pull/133
Using operator precedence to parse expressions we-like-parsers/cpython#132 https://github.com/we-like-parsers/cpython/issues/132
pablogsalhttps://github.com/pablogsal
June 8, 2020 11:05https://github.com/python/cpython/pull/20696#commits-pushed-13de6ab
https://github.com/pablogsal
Merge remote-tracking branch 'upstream/master' into operator_precedencehttps://github.com/python/cpython/pull/20696/commits/13de6ab48ecfcb8d69fc867f7d3303251f3c9398
13de6abhttps://github.com/python/cpython/pull/20696/commits/13de6ab48ecfcb8d69fc867f7d3303251f3c9398
https://github.com/pablogsal
Implement right-associative operatorshttps://github.com/python/cpython/pull/20696/commits/10bc6204c6d2093d1fd8efe1ec0ad2bcf927ab32
10bc620https://github.com/python/cpython/pull/20696/commits/10bc6204c6d2093d1fd8efe1ec0ad2bcf927ab32
https://github.com/pablogsal
Better error handlinghttps://github.com/python/cpython/pull/20696/commits/5320f37c84d8b15239dd81ef4d84c02821027f25
5320f37https://github.com/python/cpython/pull/20696/commits/5320f37c84d8b15239dd81ef4d84c02821027f25
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
needs backport to 3.9 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.9%22
Jun 8, 2020https://github.com/python/cpython/pull/20696#event-3420639061
https://github.com/pablogsal
Remove TODO itemhttps://github.com/python/cpython/pull/20696/commits/fe2d89c3f3c6caa2f652050c8855bedd0c4db4a5
fe2d89chttps://github.com/python/cpython/pull/20696/commits/fe2d89c3f3c6caa2f652050c8855bedd0c4db4a5
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jun 8, 2020https://github.com/python/cpython/pull/20696#event-3420659289
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jun 8, 2020https://github.com/python/cpython/pull/20696#issuecomment-640727464
Please reload this pagehttps://github.com/python/cpython/pull/20696
https://github.com/pablogsal
Do not use yet '**' in the operators list in the grammarhttps://github.com/python/cpython/pull/20696/commits/6fee838543146eae432f0938cb10b9899991a14a
6fee838https://github.com/python/cpython/pull/20696/commits/6fee838543146eae432f0938cb10b9899991a14a
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Jun 10, 2020https://github.com/python/cpython/pull/20696#issuecomment-642195741
@pablogsalhttps://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/20696
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jun 10, 2020https://github.com/python/cpython/pull/20696#issuecomment-642213143
Please reload this pagehttps://github.com/python/cpython/pull/20696
@pablogsalhttps://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/20696
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
Jun 10, 2020https://github.com/python/cpython/pull/20696#issuecomment-642256790
Please reload this pagehttps://github.com/python/cpython/pull/20696
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jun 10, 2020https://github.com/python/cpython/pull/20696#event-3431466099
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F20696
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/20696
https://github.com/pablogsal
https://github.com/gvanrossum
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.