René's URL Explorer Experiment


Title: GH-119169: Speed up `os.walk(topdown=False)` by barneygale · Pull Request #119186 · python/cpython · GitHub

Open Graph Title: GH-119169: Speed up `os.walk(topdown=False)` by barneygale · Pull Request #119186 · python/cpython

X Title: GH-119169: Speed up `os.walk(topdown=False)` by barneygale · Pull Request #119186 · python/cpython

Description: Add entries to the stack while iterating over os.scandir() results, rather than afterwards. Issue: gh-119169

Open Graph Description: Add entries to the stack while iterating over os.scandir() results, rather than afterwards. Issue: gh-119169

X Description: Add entries to the stack while iterating over os.scandir() results, rather than afterwards. Issue: gh-119169

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bb3d8db1-623d-a007-ad6e-31f880012d52
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEA3A:1860A8:1345E9E:1AB0371:696A9119
html-safe-nonce54d83cc08aa98a435e0f2fae0e68a04ae0c1f6a1c84784abceb04b256240dcba
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTNBOjE4NjBBODoxMzQ1RTlFOjFBQjAzNzE6Njk2QTkxMTkiLCJ2aXNpdG9yX2lkIjoiMzYzNDM4NTU0NzkzMzk0NjEzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6126631b7b5791d074e811366f91983208162164ec3cc8c984633cb33ae64f3d
hovercard-subject-tagpull_request:1877265430
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/119186/files
twitter:imagehttps://avatars.githubusercontent.com/u/960340?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/960340?s=400&v=4
og:image:altAdd entries to the stack while iterating over os.scandir() results, rather than afterwards. Issue: gh-119169
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4dd496afc954da9c207b2d9fbe86e3074619f565754aa1d9274aec30d9e5b8d7
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release31496a13b80a2f6ad77d6c617ee2255a3545b539
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/119186/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F119186%2Ffiles
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%2F119186%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/119186/files
Reloadhttps://github.com/python/cpython/pull/119186/files
Reloadhttps://github.com/python/cpython/pull/119186/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/119186/files
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/119186/files
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
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:os-walk-speeduphttps://github.com/barneygale/cpython/tree/os-walk-speedup
Conversation 3 https://github.com/python/cpython/pull/119186
Commits 12 https://github.com/python/cpython/pull/119186/commits
Checks 0 https://github.com/python/cpython/pull/119186/checks
Files changed https://github.com/python/cpython/pull/119186/files
Please reload this pagehttps://github.com/python/cpython/pull/119186/files
GH-119169: Speed up os.walk(topdown=False) https://github.com/python/cpython/pull/119186/files#top
Show all changes 12 commits https://github.com/python/cpython/pull/119186/files
74a495c GH-119169: Speed up `os.walk()` barneygale May 19, 2024 https://github.com/python/cpython/pull/119186/commits/74a495c6b1dee7b1c71e0b82ca1ab8362aceda78
eb4b6ff Merge branch 'main' into os-walk-speedup barneygale May 23, 2024 https://github.com/python/cpython/pull/119186/commits/eb4b6ff605cbec93497b1aa8fd6768fd2cc7eaf3
46a3ba5 Simplify bottom-up implementation. barneygale May 23, 2024 https://github.com/python/cpython/pull/119186/commits/46a3ba54ac805786649f8ab0e5dd0ace2051f58b
2d957a8 Merge branch 'main' into os-walk-speedup barneygale May 30, 2024 https://github.com/python/cpython/pull/119186/commits/2d957a8474ff0979fe8056275d3f208c46732103
a638202 Apply the same changes to fwalk() barneygale May 30, 2024 https://github.com/python/cpython/pull/119186/commits/a6382026d696e3be9f6d057e347949bd1204e3b1
91b5a78 Simplify code slightly barneygale May 30, 2024 https://github.com/python/cpython/pull/119186/commits/91b5a78584c1701af18938870c7fb4b33cd5ba4c
b32c1c0 Simplify exception handling in fwalk() barneygale Jul 6, 2024 https://github.com/python/cpython/pull/119186/commits/b32c1c0641f9cec2e6788b0ae49ba61d9b9b3d75
8c7cf04 Merge branch 'main' into os-walk-speedup barneygale Jul 6, 2024 https://github.com/python/cpython/pull/119186/commits/8c7cf04fd2bc9a7b80fc8da2a2e2f48757383d74
efd31e2 Undo trailing slash optimisation (moved to another PR) barneygale Jul 6, 2024 https://github.com/python/cpython/pull/119186/commits/efd31e2ef5ce2c8d5132d165bef861b8dca6ae90
5b89c57 Undo fwalk() changes. barneygale Jul 6, 2024 https://github.com/python/cpython/pull/119186/commits/5b89c5759f898f616fd2c51f3b38294c8c079369
525618c Fix news entry. barneygale Jul 6, 2024 https://github.com/python/cpython/pull/119186/commits/525618ce65a525eae29c64d414644f45f994647f
d3af655 Merge branch 'main' into os-walk-speedup barneygale Jul 8, 2024 https://github.com/python/cpython/pull/119186/commits/d3af6550b7b128c851dc530f7bc7160cdedec5f5
Clear filters https://github.com/python/cpython/pull/119186/files
Please reload this pagehttps://github.com/python/cpython/pull/119186/files
Please reload this pagehttps://github.com/python/cpython/pull/119186/files
os.py https://github.com/python/cpython/pull/119186/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
2024-05-19-20-13-09.gh-issue-119169.CuE7q0.rst https://github.com/python/cpython/pull/119186/files#diff-9476cfb53040e5cf72374148935d44fb418d6d17d117e4b0f520253c068c0e83
Lib/os.pyhttps://github.com/python/cpython/pull/119186/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
View file https://github.com/barneygale/cpython/blob/d3af6550b7b128c851dc530f7bc7160cdedec5f5/Lib/os.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/119186/{{ revealButtonHref }}
https://github.com/python/cpython/pull/119186/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/python/cpython/pull/119186/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/python/cpython/pull/119186/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
https://github.com/python/cpython/pull/119186/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431
Misc/NEWS.d/next/Library/2024-05-19-20-13-09.gh-issue-119169.CuE7q0.rsthttps://github.com/python/cpython/pull/119186/files#diff-9476cfb53040e5cf72374148935d44fb418d6d17d117e4b0f520253c068c0e83
View file https://github.com/barneygale/cpython/blob/d3af6550b7b128c851dc530f7bc7160cdedec5f5/Misc/NEWS.d/next/Library/2024-05-19-20-13-09.gh-issue-119169.CuE7q0.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/119186/{{ revealButtonHref }}
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.