René's URL Explorer Experiment


Title: bpo-37935: Improve performance of pathlib.scandir() by ShaiAvr · Pull Request #15331 · python/cpython · GitHub

Open Graph Title: bpo-37935: Improve performance of pathlib.scandir() by ShaiAvr · Pull Request #15331 · python/cpython

X Title: bpo-37935: Improve performance of pathlib.scandir() by ShaiAvr · Pull Request #15331 · python/cpython

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

Open Graph Description: I recently have taken a look in the source code of the pathlib module, and I saw something weird there: when the module used the scandir function, it first converted its iterator into a list and th...

X Description: I recently have taken a look in the source code of the pathlib module, and I saw something weird there: when the module used the scandir function, it first converted its iterator into a list and th...

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

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:8f53b052-11f3-d566-daf2-16d9c42a19e7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCE5A:2BEEF:1A859D9:2455C3D:6A54830F
html-safe-nonce667112d1ca92ea622edfb26a75b49aefebd094f3c79c2e1302118784d95e22a6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTVBOjJCRUVGOjFBODU5RDk6MjQ1NUMzRDo2QTU0ODMwRiIsInZpc2l0b3JfaWQiOiI3NTA2OTE2NDEzNTE4Njc2NzUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac596418e5a1c002fa00d66f99e9ec6df1f0fc4305d5eedc76ee8c71d288418155
hovercard-subject-tagpull_request:308516871
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/15331/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/805132f084f05a4c79c6a773fcd366a6c63ecc4bb03d4dfb73fb9069cd78b5df/python/cpython/pull/15331
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/805132f084f05a4c79c6a773fcd366a6c63ecc4bb03d4dfb73fb9069cd78b5df/python/cpython/pull/15331
og:image:altI recently have taken a look in the source code of the pathlib module, and I saw something weird there: when the module used the scandir function, it first converted its iterator into a list and th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameShaiAvr
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release6d28624802c2f7d9500239dd6870ed7031b7353b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/15331#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F15331
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%2F15331
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/15331
Reloadhttps://github.com/python/cpython/pull/15331
Reloadhttps://github.com/python/cpython/pull/15331
Please reload this pagehttps://github.com/python/cpython/pull/15331
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/15331
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
ShaiAvrhttps://github.com/ShaiAvr
python:masterhttps://github.com/python/cpython/tree/master
Conversationhttps://github.com/python/cpython/pull/15331
Commits1 (1)https://github.com/python/cpython/pull/15331/commits
Checkshttps://github.com/python/cpython/pull/15331/checks
Files changedhttps://github.com/python/cpython/pull/15331/files
bpo-37935: Improve performance of pathlib.scandir()https://github.com/python/cpython/pull/15331#top
ShaiAvrhttps://github.com/ShaiAvr
python:masterhttps://github.com/python/cpython/tree/master
https://github.com/ShaiAvr
ShaiAvrhttps://github.com/ShaiAvr
Aug 19, 2019https://github.com/python/cpython/pull/15331#issue-482197183
Please reload this pagehttps://github.com/python/cpython/pull/15331
docshttps://docs.python.org/3/library/os.html#os.scandir.close
https://bugs.python.org/issue37935https://bugs.python.org/issue37935
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/ShaiAvr
Improve performance of scandir by not converting it to listhttps://github.com/python/cpython/pull/15331/commits/9199e4f668e59447e1ace76a5c512e42e0207038
9199e4fhttps://github.com/python/cpython/pull/15331/commits/9199e4f668e59447e1ace76a5c512e42e0207038
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA not signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20not%20signed%22
Aug 19, 2019https://github.com/python/cpython/pull/15331#event-2565616006
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
Aug 19, 2019https://github.com/python/cpython/pull/15331#issuecomment-522485641
PSF contributor agreementhttps://www.python.org/psf/contrib/contrib-form/
bugs.python.orghttps://bugs.python.org/
the steps outlined in the CPython devguidehttps://devguide.python.org/pullrequest/#licensing
check yourselfhttps://check-python-cla.herokuapp.com/
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 19, 2019https://github.com/python/cpython/pull/15331#event-2565616081
https://github.com/aeros
aeroshttps://github.com/aeros
Aug 21, 2019 https://github.com/python/cpython/pull/15331#pullrequestreview-277553151
View reviewed changes https://github.com/python/cpython/pull/15331/files/9199e4f668e59447e1ace76a5c512e42e0207038
aeroshttps://github.com/aeros
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/python/cpython/pull/15331#pullrequestreview-277553151
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@ShaiAvrhttps://github.com/ShaiAvr
https://bugs.python.org/https://bugs.python.org/
checked manuallyhttps://check-python-cla.herokuapp.com/
https://bugs.python.org/https://bugs.python.org/
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/aeros
aeroshttps://github.com/aeros
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
Aug 21, 2019https://github.com/python/cpython/pull/15331#event-2571739950
https://github.com/ShaiAvr
ShaiAvrhttps://github.com/ShaiAvr
Aug 23, 2019https://github.com/python/cpython/pull/15331#issuecomment-524245262
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/aeros
aeroshttps://github.com/aeros
Aug 24, 2019https://github.com/python/cpython/pull/15331#issuecomment-524499879
Please reload this pagehttps://github.com/python/cpython/pull/15331
"Lifecycle of a Pull Pequest" section of the devguidehttps://devguide.python.org/pullrequest/
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/ShaiAvr
ShaiAvrhttps://github.com/ShaiAvr
Aug 24, 2019https://github.com/python/cpython/pull/15331#event-2581265929
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Sep 10, 2019https://github.com/python/cpython/pull/15331#issuecomment-529995426
https://bugs.python.org/user32163https://bugs.python.org/user32163
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
CLA not signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20not%20signed%22
Sep 10, 2019https://github.com/python/cpython/pull/15331#event-2622745906
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA not signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20not%20signed%22
Sep 10, 2019https://github.com/python/cpython/pull/15331#event-2622745977
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
needs backport to 3.8 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.8%22
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
Sep 10, 2019https://github.com/python/cpython/pull/15331#event-2622746337
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Sep 10, 2019https://github.com/python/cpython/pull/15331#issuecomment-529996126
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Sep 10, 2019https://github.com/python/cpython/pull/15331#event-2622750859
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Sep 12, 2019https://github.com/python/cpython/pull/15331#issuecomment-530813360
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
needs backport to 3.8 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.8%22
type-bug https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-bug
Sep 12, 2019https://github.com/python/cpython/pull/15331#event-2629073527
https://github.com/csabella
csabellahttps://github.com/csabella
Nov 21, 2019https://github.com/python/cpython/pull/15331#issuecomment-556864520
@ShaiAvrhttps://github.com/ShaiAvr
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/csabella
csabellahttps://github.com/csabella
Jan 12, 2020https://github.com/python/cpython/pull/15331#issuecomment-573414271
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/csabella
csabellahttps://github.com/csabella
Jan 12, 2020https://github.com/python/cpython/pull/15331#event-2941232111
https://github.com/python/cpython/pull/15331
ShaiAvrhttps://github.com/python/cpython/pull/15331
Apr 10, 2022 https://github.com/python/cpython/pull/15331#ref-issue-1199018320
Improve performance of pathlib.scandir() #82116 https://github.com/python/cpython/issues/82116
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%2F15331
https://github.com/aeros
aeros https://github.com/aeros
https://github.com/python/cpython/pull/15331/files/9199e4f668e59447e1ace76a5c512e42e0207038
https://github.com/gpshead
gpshead https://github.com/gpshead
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
Please reload this pagehttps://github.com/python/cpython/pull/15331
https://github.com/ShaiAvr
https://github.com/the-knights-who-say-ni
https://github.com/aeros
https://github.com/gpshead
https://github.com/csabella
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.