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 loops, best of 5: 403 usec per loop # before 1000 loops, best of 5: 389 usec per loop # after Issue: gh-104104
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
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:c2a439c9-0e40-a8bf-d089-8405e011cdab |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D7D8:FB44E:605308:84CE3D:69694DD0 |
| html-safe-nonce | 670de2a62325194d0ef3b805b31e0a789bc7d8cfe1e29c506d1d80631511f3b2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0Q4OkZCNDRFOjYwNTMwODo4NENFM0Q6Njk2OTRERDAiLCJ2aXNpdG9yX2lkIjoiNTQyODQ2OTc1NjI4NjU1MzU1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | df76d1859a55e998883d08ffd7d8ef9c9d043508470c13f9706f2bab57c5c706 |
| hovercard-subject-tag | pull_request:1335782494 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/104105/checks |
| twitter:image | https://avatars.githubusercontent.com/u/960340?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/960340?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width