René's URL Explorer Experiment


Title: GH-104104: Optimize `pathlib.Path.glob()` by avoiding repeated calls to `os.path.normcase()` by barneygale · Pull Request #104105 · python/cpython · GitHub

Open Graph Title: GH-104104: Optimize `pathlib.Path.glob()` by avoiding repeated calls to `os.path.normcase()` by barneygale · Pull Request #104105 · python/cpython

X Title: GH-104104: Optimize `pathlib.Path.glob()` by avoiding repeated calls to `os.path.normcase()` by barneygale · Pull Request #104105 · python/cpython

Description: Use re.IGNORECASE to implement case-insensitive matching. This restores behaviour from before #31691. $ ./python -m timeit -s 'from pathlib import Path; p = Path()' 'list(p.glob("Lib/*.py"))' 500 l...

Open Graph Description: Use re.IGNORECASE to implement case-insensitive matching. This restores behaviour from before #31691. $ ./python -m timeit -s 'from pathlib import Path; p = Path()' 'list(p.glob("L...

X Description: Use re.IGNORECASE to implement case-insensitive matching. This restores behaviour from before #31691. $ ./python -m timeit -s 'from pathlib import Path; p = Path()' 'list(p....

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

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:ed69dfd4-4db0-9cad-19dc-0bd5a982f18c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id925E:102115:3241EDE:46145ED:69693629
html-safe-nonce0981e524d5b5e0961f3251150b138f6370b6f35c275e7ad08f5623722c18f0e0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjVFOjEwMjExNTozMjQxRURFOjQ2MTQ1RUQ6Njk2OTM2MjkiLCJ2aXNpdG9yX2lkIjoiMzU2MTc2MDgwMzQ2NDQ5MjU4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf6c1afb9c5351775e94a777b33349c9cf0a66d60e745e0e0c758efadbe1fea79
hovercard-subject-tagpull_request:1335782494
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/104105/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f4e9350682d43081a5f4afd12e77b3bae5e0d29e73ff8cd8b0806890b4429a23/python/cpython/pull/104105
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f4e9350682d43081a5f4afd12e77b3bae5e0d29e73ff8cd8b0806890b4429a23/python/cpython/pull/104105
og:image:altUse re.IGNORECASE to implement case-insensitive matching. This restores behaviour from before #31691. $ ./python -m timeit -s 'from pathlib import Path; p = Path()' 'list(p.glob("L...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarneygale
hostnamegithub.com
expected-hostnamegithub.com
None54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d
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
released69ac0477df0f87da03b8b06cebd187012d7a930
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/104105#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F104105
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%2F104105
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/104105
Reloadhttps://github.com/python/cpython/pull/104105
Reloadhttps://github.com/python/cpython/pull/104105
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/104105
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 2k 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/104105
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/104105#issue-comment-box
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-104104-pathlib-glob-use-re-ignorecasehttps://github.com/barneygale/cpython/tree/gh-104104-pathlib-glob-use-re-ignorecase
GH-104104: Optimize pathlib.Path.glob() by avoiding repeated calls to os.path.normcase() https://github.com/python/cpython/pull/104105#top
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-104104-pathlib-glob-use-re-ignorecasehttps://github.com/barneygale/cpython/tree/gh-104104-pathlib-glob-use-re-ignorecase
Conversation 4 https://github.com/python/cpython/pull/104105
Commits 2 https://github.com/python/cpython/pull/104105/commits
Checks 0 https://github.com/python/cpython/pull/104105/checks
Files changed https://github.com/python/cpython/pull/104105/files
Please reload this pagehttps://github.com/python/cpython/pull/104105
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/barneygale
barneygalehttps://github.com/barneygale
May 2, 2023https://github.com/python/cpython/pull/104105#issue-1693033549
Please reload this pagehttps://github.com/python/cpython/pull/104105
#31691https://github.com/python/cpython/pull/31691
Optimize pathlib.Path.glob() by avoiding repeated calls to os.path.normcase() #104104https://github.com/python/cpython/issues/104104
Please reload this pagehttps://github.com/python/cpython/pull/104105
https://github.com/barneygale
pythonGH-104104https://github.com/python/cpython/issues/104104
: Optimizehttps://github.com/python/cpython/pull/104105/commits/93ad73f3a9d396e7e856cfeacaf2bad0e69ccb4a
pathlib.Path.glob()https://github.com/python/cpython/pull/104105/commits/93ad73f3a9d396e7e856cfeacaf2bad0e69ccb4a
by avoiding repeated …https://github.com/python/cpython/pull/104105/commits/93ad73f3a9d396e7e856cfeacaf2bad0e69ccb4a
93ad73fhttps://github.com/python/cpython/pull/104105/commits/93ad73f3a9d396e7e856cfeacaf2bad0e69ccb4a
python#31691https://github.com/python/cpython/pull/31691
https://github.com/barneygale
barneygalehttps://github.com/barneygale
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
May 2, 2023https://github.com/python/cpython/pull/104105#event-9149452791
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
May 2, 2023https://github.com/python/cpython/pull/104105#event-9149453166
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
May 2, 2023 https://github.com/python/cpython/pull/104105#ref-issue-1693026239
Optimize pathlib.Path.glob() by avoiding repeated calls to os.path.normcase() #104104 https://github.com/python/cpython/issues/104104
https://github.com/barneygale
barneygalehttps://github.com/barneygale
May 2, 2023 https://github.com/python/cpython/pull/104105#ref-pullrequest-1624516320
GH-81079: Add case_sensitive argument to pathlib.Path.glob() #102710 https://github.com/python/cpython/pull/102710
https://github.com/barneygale
Fix typo in news entryhttps://github.com/python/cpython/pull/104105/commits/3ac863437d53126c8e37e1fbd6bfc9b0263909d3
3ac8634https://github.com/python/cpython/pull/104105/commits/3ac863437d53126c8e37e1fbd6bfc9b0263909d3
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
May 2, 2023 https://github.com/python/cpython/pull/104105#pullrequestreview-1409918253
View reviewed changes https://github.com/python/cpython/pull/104105/files/3ac863437d53126c8e37e1fbd6bfc9b0263909d3
AlexWaygoodhttps://github.com/AlexWaygood
https://github.com/python/cpython/pull/104105#pullrequestreview-1409918253
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#31691https://github.com/python/cpython/pull/31691
Please reload this pagehttps://github.com/python/cpython/pull/104105
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 core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
May 2, 2023https://github.com/python/cpython/pull/104105#event-9150024326
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.12
May 2, 2023https://github.com/python/cpython/pull/104105#event-9150026113
https://github.com/barneygale
barneygalehttps://github.com/barneygale
May 2, 2023https://github.com/python/cpython/pull/104105#issuecomment-1532198720
#31691https://github.com/python/cpython/pull/31691
Please reload this pagehttps://github.com/python/cpython/pull/104105
https://github.com/barneygale
barneygalehttps://github.com/barneygale
47770a1https://github.com/python/cpython/commit/47770a1e91d096fd1c689eb0c78b0f9e76b43639
May 2, 2023https://github.com/python/cpython/pull/104105#event-9150136914
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
May 2, 2023https://github.com/python/cpython/pull/104105#event-9150137147
https://github.com/barneygale
barneygalehttps://github.com/barneygale
May 2, 2023https://github.com/python/cpython/pull/104105#issuecomment-1532201090
Please reload this pagehttps://github.com/python/cpython/pull/104105
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
May 2, 2023https://github.com/python/cpython/pull/104105#issuecomment-1532203146
Please reload this pagehttps://github.com/python/cpython/pull/104105
carljmhttps://github.com/carljm
May 2, 2023 https://github.com/python/cpython/pull/104105#ref-commit-b9c39e3
https://github.com/carljm
Merge branch 'main' into cached_property_docshttps://github.com/carljm/cpython/commit/b9c39e36dd0e792c860440174814ae546dfa62b1
b9c39e3https://github.com/carljm/cpython/commit/b9c39e36dd0e792c860440174814ae546dfa62b1
pythonGH-104102https://github.com/python/cpython/issues/104102
pythonGH-104103https://github.com/python/cpython/pull/104103
pythonGH-104104https://github.com/python/cpython/issues/104104
pythonGH-104105https://github.com/python/cpython/pull/104105
pythongh-103822https://github.com/python/cpython/issues/103822
pythonGH-103827https://github.com/python/cpython/pull/103827
pythongh-65022https://github.com/python/cpython/issues/65022
python#103892https://github.com/python/cpython/pull/103892
pythonGH-103525https://github.com/python/cpython/issues/103525
pythonGH-103526https://github.com/python/cpython/pull/103526
pythongh-84436https://github.com/python/cpython/issues/84436
pythongh-103962https://github.com/python/cpython/pull/103962
pythongh-103743https://github.com/python/cpython/issues/103743
pythonGH-103744https://github.com/python/cpython/pull/103744
pythongh-102997https://github.com/python/cpython/issues/102997
python#102999https://github.com/python/cpython/pull/102999
pythonGH-103484https://github.com/python/cpython/issues/103484
python#104001https://github.com/python/cpython/pull/104001
python#104081https://github.com/python/cpython/pull/104081
pythongh-102997https://github.com/python/cpython/issues/102997
pythonGH-102998https://github.com/python/cpython/pull/102998
pythonGH-103472https://github.com/python/cpython/issues/103472
python#103473https://github.com/python/cpython/pull/103473
pythongh-88496https://github.com/python/cpython/issues/88496
python#104075https://github.com/python/cpython/pull/104075
pythongh-94673https://github.com/python/cpython/issues/94673
pythongh-104074https://github.com/python/cpython/pull/104074
pythongh-94673https://github.com/python/cpython/issues/94673
pythongh-104072https://github.com/python/cpython/pull/104072
pythongh-104016https://github.com/python/cpython/issues/104016
python#104071https://github.com/python/cpython/pull/104071
pythongh-104057https://github.com/python/cpython/issues/104057
python#104064https://github.com/python/cpython/pull/104064
pythongh-87092https://github.com/python/cpython/issues/87092
python#103988https://github.com/python/cpython/pull/103988
pythongh-97696https://github.com/python/cpython/issues/97696
python#102853https://github.com/python/cpython/pull/102853
pythongh-84436https://github.com/python/cpython/issues/84436
pythongh-104054https://github.com/python/cpython/pull/104054
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%2F104105
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/cpython/pull/104105/files/3ac863437d53126c8e37e1fbd6bfc9b0263909d3
3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.12
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Please reload this pagehttps://github.com/python/cpython/pull/104105
https://github.com/barneygale
https://github.com/AlexWaygood
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.