René's URL Explorer Experiment


Title: gh-152674: Avoid quadratic behavior in xml.etree.ElementPath index predicates by encukou · Pull Request #152676 · python/cpython · GitHub

Open Graph Title: gh-152674: Avoid quadratic behavior in xml.etree.ElementPath index predicates by encukou · Pull Request #152676 · python/cpython

X Title: gh-152674: Avoid quadratic behavior in xml.etree.ElementPath index predicates by encukou · Pull Request #152676 · python/cpython

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

Open Graph Description: Issue: Quadratic behavior in xml.etree.ElementPath Index Predicates #152674

X Description: Issue: Quadratic behavior in xml.etree.ElementPath Index Predicates #152674

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:aff3e4db-8c0e-4f56-ebd3-f15e12084fb6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA01C:236B3F:A03A8:DE28A:6AFDAA61
html-safe-nonce6f52c5493c4e1d2424ca5a24ad991f5adf022b5ddba991ee226fee559b9a8792
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDFDOjIzNkIzRjpBMDNBODpERTI4QTo2QUZEQUE2MSIsInZpc2l0b3JfaWQiOiIxMTMyODU4NTg0NTg1ODQxMjQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccaad2e1f410dbc99a6c2615acaacd6807d741f36bf4d001d292e37c32c202904
hovercard-subject-tagpull_request:3962752627
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/152676/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/df78b6d470650bdc9063a374415df333bdc705002269334bf31529256b5f47b1/python/cpython/pull/152676
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/df78b6d470650bdc9063a374415df333bdc705002269334bf31529256b5f47b1/python/cpython/pull/152676
og:image:altIssue: Quadratic behavior in xml.etree.ElementPath Index Predicates #152674
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
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
release0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/152676#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152676
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F152676
Sign uphttps://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/152676
Reloadhttps://github.com/python/cpython/pull/152676
Reloadhttps://github.com/python/cpython/pull/152676
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:adf1https://github.com/encukou/cpython/tree/adf1
Conversationhttps://github.com/python/cpython/pull/152676
Commits5 (5)https://github.com/python/cpython/pull/152676/commits
Checkshttps://github.com/python/cpython/pull/152676/checks
Files changedhttps://github.com/python/cpython/pull/152676/files
gh-152674: Avoid quadratic behavior in xml.etree.ElementPath index predicateshttps://github.com/python/cpython/pull/152676#top
encukouhttps://github.com/encukou
python:mainhttps://github.com/python/cpython/tree/main
encukou:adf1https://github.com/encukou/cpython/tree/adf1
https://github.com/encukou
encukouhttps://github.com/encukou
Jun 30, 2026https://github.com/python/cpython/pull/152676#issue-4776316745
Please reload this pagehttps://github.com/python/cpython/pull/152676
Quadratic behavior in xml.etree.ElementPath Index Predicates #152674https://github.com/python/cpython/issues/152674
Please reload this pagehttps://github.com/python/cpython/pull/152676
June 30, 2026 13:20https://github.com/python/cpython/pull/152676#commits-pushed-ce3d3cd
Fix GHSA-55rc-7hww-hf4phttps://github.com/python/cpython/pull/152676/commits/ce3d3cd24c871be0c695e1d5b014e1b42063f082
ce3d3cdhttps://github.com/python/cpython/pull/152676/commits/ce3d3cd24c871be0c695e1d5b014e1b42063f082
Fix testhttps://github.com/python/cpython/pull/152676/commits/be3168539131869cf531bec297355beddf88ded6
be31685https://github.com/python/cpython/pull/152676/commits/be3168539131869cf531bec297355beddf88ded6
Only cache the element at the given indexhttps://github.com/python/cpython/pull/152676/commits/9158932a451db5425a07b2ea88c99b222d7a96d9
9158932https://github.com/python/cpython/pull/152676/commits/9158932a451db5425a07b2ea88c99b222d7a96d9
Add blurbhttps://github.com/python/cpython/pull/152676/commits/553173a3071863533665c1d88c13b1d4096f6f26
553173ahttps://github.com/python/cpython/pull/152676/commits/553173a3071863533665c1d88c13b1d4096f6f26
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 30, 2026https://github.com/python/cpython/pull/152676#event-27375362572
https://github.com/encukou
encukouhttps://github.com/encukou
Jun 30, 2026https://github.com/python/cpython/pull/152676#event-27375368802
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jun 30, 2026 https://github.com/python/cpython/pull/152676#ref-issue-4776231246
Quadratic behavior in xml.etree.ElementPath Index Predicates #152674 https://github.com/python/cpython/issues/152674
Remove unused importhttps://github.com/python/cpython/pull/152676/commits/f39efdc63774c075e2d4bcc20abbb03b3e15ea98
f39efdchttps://github.com/python/cpython/pull/152676/commits/f39efdc63774c075e2d4bcc20abbb03b3e15ea98
https://github.com/encukou
encukouhttps://github.com/encukou
serhiy-storchakahttps://github.com/serhiy-storchaka
June 30, 2026 12:28https://github.com/python/cpython/pull/152676#event-27377690958
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Jun 30, 2026 https://github.com/python/cpython/pull/152676#pullrequestreview-4600643626
View reviewed changes https://github.com/python/cpython/pull/152676/files/f39efdc63774c075e2d4bcc20abbb03b3e15ea98
https://github.com/python/cpython/pull/152676#pullrequestreview-4600643626
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jun 30, 2026https://github.com/python/cpython/pull/152676#event-27379704382
https://github.com/encukou
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103617095
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/encukou
encukouhttps://github.com/encukou
2ffab08https://github.com/python/cpython/commit/2ffab083782968a4d732738f4f1dff6bbd69d2b0
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595042079
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595044518
https://github.com/encukou
encukouhttps://github.com/encukou
July 28, 2026 11:36https://github.com/python/cpython/pull/152676#event-28595046415
https://github.com/encukou
encukouhttps://github.com/encukou
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595088351
https://github.com/apps/miss-islington-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103632557
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/miss-islington-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103632585
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/miss-islington-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103632666
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/bedevere-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103634672
GH-154810https://github.com/python/cpython/pull/154810
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/bedevere-app
bedevere-apphttps://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
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595100089
https://github.com/apps/bedevere-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103635382
GH-154811https://github.com/python/cpython/pull/154811
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595103122
https://github.com/apps/bedevere-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103636205
GH-154812https://github.com/python/cpython/pull/154812
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595107059
https://github.com/encukou
encukouhttps://github.com/encukou
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595257569
https://github.com/encukou
encukouhttps://github.com/encukou
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595257679
https://github.com/apps/miss-islington-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103669518
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/miss-islington-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103669528
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/miss-islington-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103669547
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/bedevere-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103671993
GH-154813https://github.com/python/cpython/pull/154813
3.11 branchhttps://github.com/python/cpython/tree/3.11
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.11 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.11%22
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595273047
https://github.com/apps/bedevere-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103673105
GH-154814https://github.com/python/cpython/pull/154814
3.10 branchhttps://github.com/python/cpython/tree/3.10
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.10 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.10%22
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595278889
https://github.com/apps/bedevere-app
Jul 28, 2026https://github.com/python/cpython/pull/152676#issuecomment-5103674067
GH-154815https://github.com/python/cpython/pull/154815
3.12 branchhttps://github.com/python/cpython/tree/3.12
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
Jul 28, 2026https://github.com/python/cpython/pull/152676#event-28595283903
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%2F152676
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/152676/files/f39efdc63774c075e2d4bcc20abbb03b3e15ea98
Please reload this pagehttps://github.com/python/cpython/pull/152676
Please reload this pagehttps://github.com/python/cpython/pull/152676
https://github.com/encukou
https://github.com/serhiy-storchaka
https://github.com/DarkaMaul
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.