Title: Optimize joining of pathlib.PurePath() arguments. · Issue #104996 · python/cpython · GitHub
Open Graph Title: Optimize joining of pathlib.PurePath() arguments. · Issue #104996 · python/cpython
X Title: Optimize joining of pathlib.PurePath() arguments. · Issue #104996 · python/cpython
Description: In Python 3.12, when multiple arguments are given to PurePath(), the initialiser calls os.path.join() to join them. This is reasonably slow. For Python 3.13 we can make it faster by: Deferring joining of arguments until strictly needed (...
Open Graph Description: In Python 3.12, when multiple arguments are given to PurePath(), the initialiser calls os.path.join() to join them. This is reasonably slow. For Python 3.13 we can make it faster by: Deferring join...
X Description: In Python 3.12, when multiple arguments are given to PurePath(), the initialiser calls os.path.join() to join them. This is reasonably slow. For Python 3.13 we can make it faster by: Deferring join...
Opengraph URL: https://github.com/python/cpython/issues/104996
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Optimize joining of pathlib.PurePath() arguments.","articleBody":"In Python 3.12, when multiple arguments are given to `PurePath()`, the initialiser calls `os.path.join()` to join them. This is reasonably slow. For Python 3.13 we can make it faster by:\r\n\r\n1. Deferring joining of arguments until strictly needed\r\n2. (Maybe) re-implementing `os.path.join()`, as pathlib did before #95450.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-104999\n* gh-105483\n* gh-105484\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/barneygale","@type":"Person","name":"barneygale"},"datePublished":"2023-05-26T20:19:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/104996/cpython/issues/104996"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:26d588c5-79da-090a-b36e-d2c7ad077a18 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAC6:2DD042:1126F98:16A5FDE:696B70EE |
| html-safe-nonce | b637e9adb7f52c167df7c07cdc4ed4b08a45c942a39cd8f6ae254ce61dd47dea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUM2OjJERDA0MjoxMTI2Rjk4OjE2QTVGREU6Njk2QjcwRUUiLCJ2aXNpdG9yX2lkIjoiNTc3MTQ3MjAyMDcwODIyNTI2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bbf8ba6738ef14b1111b3449da1df1e57cb8d32957ac172224f49502e20becfa |
| hovercard-subject-tag | issue:1728199468 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/104996/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f82b164d5c2349b00b60db8e52af1e42afd83505045d3c8e6bd604835d8fc376/python/cpython/issues/104996 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f82b164d5c2349b00b60db8e52af1e42afd83505045d3c8e6bd604835d8fc376/python/cpython/issues/104996 |
| og:image:alt | In Python 3.12, when multiple arguments are given to PurePath(), the initialiser calls os.path.join() to join them. This is reasonably slow. For Python 3.13 we can make it faster by: Deferring join... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | barneygale |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width