René's URL Explorer Experiment


Title: GH-115060: Speed up `pathlib.Path.glob()` by omitting initial `stat()` by barneygale · Pull Request #117831 · python/cpython · GitHub

Open Graph Title: GH-115060: Speed up `pathlib.Path.glob()` by omitting initial `stat()` by barneygale · Pull Request #117831 · python/cpython

X Title: GH-115060: Speed up `pathlib.Path.glob()` by omitting initial `stat()` by barneygale · Pull Request #117831 · python/cpython

Description: Since 6258844, paths that might not exist can be fed into pathlib's globbing implementation, which will call os.scandir() / os.lstat() only when strictly necessary. This allows us to drop an initia...

Open Graph Description: Since 6258844, paths that might not exist can be fed into pathlib's globbing implementation, which will call os.scandir() / os.lstat() only when strictly necessary. This allows us to drop an in...

X Description: Since 6258844, paths that might not exist can be fed into pathlib's globbing implementation, which will call os.scandir() / os.lstat() only when strictly necessary. This allows us to drop a...

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

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:53d56d82-b369-3a29-564e-10b214cdd561
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA58C:C2480:24A8D7A:324D5AB:696AC8A5
html-safe-noncef86ada6d97f4d36f8446db62a78adc7ca01750fd7f4765138860a68a2bdbffeb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNThDOkMyNDgwOjI0QThEN0E6MzI0RDVBQjo2OTZBQzhBNSIsInZpc2l0b3JfaWQiOiI2MTY3OTU4OTAyOTgxNDQ1Nzk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccf2ec6355a39602087484cce115dda0ec3308dc23bada8abc7949199a611c958
hovercard-subject-tagpull_request:1821119915
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/117831/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/2c10822f498c2bc3194ffb5e3b807712f68c3b730006a664cf817e5d33cb17a1/python/cpython/pull/117831
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2c10822f498c2bc3194ffb5e3b807712f68c3b730006a664cf817e5d33cb17a1/python/cpython/pull/117831
og:image:altSince 6258844, paths that might not exist can be fed into pathlib's globbing implementation, which will call os.scandir() / os.lstat() only when strictly necessary. This allows us to drop an in...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarneygale
hostnamegithub.com
expected-hostnamegithub.com
Nonec785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d
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
releasec718a376fcf780eb22089171adb84a543f660bf7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/117831#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F117831
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%2F117831
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/117831
Reloadhttps://github.com/python/cpython/pull/117831
Reloadhttps://github.com/python/cpython/pull/117831
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/117831
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 2.1k 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/117831
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/117831#issue-comment-box
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-115060-is-dirhttps://github.com/barneygale/cpython/tree/gh-115060-is-dir
GH-115060: Speed up pathlib.Path.glob() by omitting initial stat() https://github.com/python/cpython/pull/117831#top
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-115060-is-dirhttps://github.com/barneygale/cpython/tree/gh-115060-is-dir
Conversation 4 https://github.com/python/cpython/pull/117831
Commits 6 https://github.com/python/cpython/pull/117831/commits
Checks 0 https://github.com/python/cpython/pull/117831/checks
Files changed 6 https://github.com/python/cpython/pull/117831/files
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Apr 13, 2024https://github.com/python/cpython/pull/117831#issue-2241170514
Please reload this pagehttps://github.com/python/cpython/pull/117831
6258844https://github.com/python/cpython/commit/6258844c27e3b5a43816e7c559089a5fe0a47123
Speed up pathlib.Path.glob() by removing redundant regex matching #115060https://github.com/python/cpython/issues/115060
https://cpython-previews--117831.org.readthedocs.build/https://cpython-previews--117831.org.readthedocs.build/
Please reload this pagehttps://github.com/python/cpython/pull/117831
https://github.com/barneygale
pythonGH-115060https://github.com/python/cpython/issues/115060
: Speed uphttps://github.com/python/cpython/pull/117831/commits/3d1bbe1f35946c880056252c1e10f86e802d5070
pathlib.Path.glob()https://github.com/python/cpython/pull/117831/commits/3d1bbe1f35946c880056252c1e10f86e802d5070
by omitting initial `…https://github.com/python/cpython/pull/117831/commits/3d1bbe1f35946c880056252c1e10f86e802d5070
3d1bbe1https://github.com/python/cpython/pull/117831/commits/3d1bbe1f35946c880056252c1e10f86e802d5070
6258844https://github.com/barneygale/cpython/commit/6258844c27e3b5a43816e7c559089a5fe0a47123
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
Apr 13, 2024https://github.com/python/cpython/pull/117831#event-12455413166
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
Apr 13, 2024https://github.com/python/cpython/pull/117831#event-12455413376
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Apr 13, 2024 https://github.com/python/cpython/pull/117831#ref-issue-2119906994
Speed up pathlib.Path.glob() by removing redundant regex matching #115060 https://github.com/python/cpython/issues/115060
https://github.com/barneygale
Skip test_glob_dotdot on WASIhttps://github.com/python/cpython/pull/117831/commits/ed3f478f789d9f43ce73ee7cd9b5b7309ab7cf51
ed3f478https://github.com/python/cpython/pull/117831/commits/ed3f478f789d9f43ce73ee7cd9b5b7309ab7cf51
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Apr 13, 2024 https://github.com/python/cpython/pull/117831#pullrequestreview-1998990124
View reviewed changes https://github.com/python/cpython/pull/117831/files/ed3f478f789d9f43ce73ee7cd9b5b7309ab7cf51
hauntsaninjahttps://github.com/hauntsaninja
Please reload this pagehttps://github.com/python/cpython/pull/117831
https://github.com/python/cpython/pull/117831#pullrequestreview-1998990124
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#114036https://github.com/python/cpython/pull/114036
Please reload this pagehttps://github.com/python/cpython/pull/117831
Misc/NEWS.d/next/Library/2024-04-13-01-45-15.gh-issue-115060.IxoM03.rsthttps://github.com/python/cpython/pull/117831/files/ed3f478f789d9f43ce73ee7cd9b5b7309ab7cf51#diff-6036ca9620965175484a02390d4d9f36a28d2eb7d07dd2bfb7c1b3992a76744a
Please reload this pagehttps://github.com/python/cpython/pull/117831
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Apr 13, 2024https://github.com/python/cpython/pull/117831#issuecomment-2053733986
Please reload this pagehttps://github.com/python/cpython/pull/117831
barneygalehttps://github.com/barneygale
April 13, 2024 20:06https://github.com/python/cpython/pull/117831#commits-pushed-2df5175
https://github.com/barneygale
https://github.com/hauntsaninja
Update Misc/NEWS.d/next/Library/2024-04-13-01-45-15.gh-issue-115060.I…https://github.com/python/cpython/pull/117831/commits/2df517558b158d1925634ed50161691a05be0f18
2df5175https://github.com/python/cpython/pull/117831/commits/2df517558b158d1925634ed50161691a05be0f18
https://github.com/barneygale
Test that PermissionError is no longer raisedhttps://github.com/python/cpython/pull/117831/commits/2bf505e67a8efb2bd0652964848523fb191ccf81
2bf505ehttps://github.com/python/cpython/pull/117831/commits/2bf505e67a8efb2bd0652964848523fb191ccf81
https://github.com/barneygale
Clarify docshttps://github.com/python/cpython/pull/117831/commits/85bd81ea733e0334f67e1e89e83ae32914f0d687
85bd81ehttps://github.com/python/cpython/pull/117831/commits/85bd81ea733e0334f67e1e89e83ae32914f0d687
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Apr 13, 2024https://github.com/python/cpython/pull/117831#issuecomment-2053746088
Please reload this pagehttps://github.com/python/cpython/pull/117831
Please reload this pagehttps://github.com/python/cpython/pull/117831
https://github.com/barneygale
Switch to .. versionchanged::https://github.com/python/cpython/pull/117831/commits/ef775e34fed798a3eb8b6c90c1ebaf7002de089d
ef775e3https://github.com/python/cpython/pull/117831/commits/ef775e34fed798a3eb8b6c90c1ebaf7002de089d
https://github.com/barneygale
barneygalehttps://github.com/barneygale
a74f117https://github.com/python/cpython/commit/a74f117dab369e6c54156c7b2256769fed0c23d0
Apr 13, 2024https://github.com/python/cpython/pull/117831#event-12459045368
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
Apr 13, 2024https://github.com/python/cpython/pull/117831#event-12459045458
diegorussohttps://github.com/diegorusso
Apr 17, 2024 https://github.com/python/cpython/pull/117831#ref-commit-4477521
https://github.com/barneygale
https://github.com/hauntsaninja
https://github.com/diegorusso
pythonGH-115060https://github.com/python/cpython/issues/115060
: Speed uphttps://github.com/diegorusso/cpython/commit/447752139d4cd96d4fb461a6bc2235852f9a5810
pathlib.Path.glob()https://github.com/diegorusso/cpython/commit/447752139d4cd96d4fb461a6bc2235852f9a5810
by omitting initial `…https://github.com/diegorusso/cpython/commit/447752139d4cd96d4fb461a6bc2235852f9a5810
4477521https://github.com/diegorusso/cpython/commit/447752139d4cd96d4fb461a6bc2235852f9a5810
python#117831https://github.com/python/cpython/pull/117831
6258844https://github.com/diegorusso/cpython/commit/6258844c27e3b5a43816e7c559089a5fe0a47123
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%2F117831
https://github.com/hauntsaninja
hauntsaninja https://github.com/hauntsaninja
https://github.com/python/cpython/pull/117831/files/ed3f478f789d9f43ce73ee7cd9b5b7309ab7cf51
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
Please reload this pagehttps://github.com/python/cpython/pull/117831
https://github.com/barneygale
https://github.com/hauntsaninja
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.