Title: gh-89727: Improve os.walk complexity and speed by zmievsa · Pull Request #100671 · python/cpython · GitHub
Open Graph Title: gh-89727: Improve os.walk complexity and speed by zmievsa · Pull Request #100671 · python/cpython
X Title: gh-89727: Improve os.walk complexity and speed by zmievsa · Pull Request #100671 · python/cpython
Description: Use isinstance for checking the top of the stack in os.walk to simplify it and speed it up. Issue: gh-89727 A small benchmark below. "." is this repository.
Open Graph Description: Use isinstance for checking the top of the stack in os.walk to simplify it and speed it up. Issue: gh-89727 A small benchmark below. "." is this repository.
X Description: Use isinstance for checking the top of the stack in os.walk to simplify it and speed it up. Issue: gh-89727 A small benchmark below. "." is this repository.
Opengraph URL: https://github.com/python/cpython/pull/100671
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8a52d2d1-8042-bdaa-4d82-34c0ec6d45c5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9F5C:7C3CC:F29901:146B2DC:6969930C |
| html-safe-nonce | d0bb5f10a15bd38be912d4592b650c5c9a9b315c987dae136a68014be5547702 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjVDOjdDM0NDOkYyOTkwMToxNDZCMkRDOjY5Njk5MzBDIiwidmlzaXRvcl9pZCI6IjEzNzc1NzQ3NDMxMDE2NTI2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 58ffbbf6040c234fdf09e00d93890db83ce4f6a93ff0dc8610fa0fce1fdb5466 |
| hovercard-subject-tag | pull_request:1182169198 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/100671/files |
| twitter:image | https://avatars.githubusercontent.com/u/17561586?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/17561586?s=400&v=4 |
| og:image:alt | Use isinstance for checking the top of the stack in os.walk to simplify it and speed it up. Issue: gh-89727 A small benchmark below. "." is this repository. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width