René's URL Explorer Experiment


Title: GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath() by barneygale · Pull Request #101665 · python/cpython · GitHub

Open Graph Title: GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath() by barneygale · Pull Request #101665 · python/cpython

X Title: GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath() by barneygale · Pull Request #101665 · python/cpython

Description: This reduces the time taken to run PurePath("foo") by ~15%

Open Graph Description: This reduces the time taken to run PurePath("foo") by ~15%

X Description: This reduces the time taken to run PurePath("foo") by ~15%

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

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:6adb6d7d-6054-ab02-2d22-4dcbafe7b445
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC780:F5661:1EAD155:29ED869:696ABF94
html-safe-noncea58df4e5d517c355a86a1213b88741ec69d01d63e54e9347906866ae54098d3b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzgwOkY1NjYxOjFFQUQxNTU6MjlFRDg2OTo2OTZBQkY5NCIsInZpc2l0b3JfaWQiOiIyOTk1MzAxOTA5MDA3MDg5NTU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac307da439dc5fce67bf9a56992f02276c372982fbfea9532873a7096bc4e2bdb9
hovercard-subject-tagpull_request:1232604944
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/101665/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3b75909ad0c44bbb9dc7f93613e4d6c5af58356d3bc815016aa38083fb44038c/python/cpython/pull/101665
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3b75909ad0c44bbb9dc7f93613e4d6c5af58356d3bc815016aa38083fb44038c/python/cpython/pull/101665
og:image:altThis reduces the time taken to run PurePath("foo") by ~15%
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarneygale
hostnamegithub.com
expected-hostnamegithub.com
None46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b
turbo-cache-controlno-preview
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
release30300f30bb3949de255e84a146706a3bdb5c19c9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/101665#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F101665
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%2F101665
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/101665
Reloadhttps://github.com/python/cpython/pull/101665
Reloadhttps://github.com/python/cpython/pull/101665
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/101665
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/101665
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
Jump to bottomhttps://github.com/python/cpython/pull/101665#issue-comment-box
AlexWaygoodhttps://github.com/AlexWaygood
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-101362-purepath-stop-joining-one-arghttps://github.com/barneygale/cpython/tree/gh-101362-purepath-stop-joining-one-arg
GH-101362: Call join() only when >1 argument supplied to pathlib.PurePath() https://github.com/python/cpython/pull/101665#top
AlexWaygoodhttps://github.com/AlexWaygood
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-101362-purepath-stop-joining-one-arghttps://github.com/barneygale/cpython/tree/gh-101362-purepath-stop-joining-one-arg
Conversation 5 https://github.com/python/cpython/pull/101665
Commits 1 https://github.com/python/cpython/pull/101665/commits
Checks 0 https://github.com/python/cpython/pull/101665/checks
Files changed https://github.com/python/cpython/pull/101665/files
Please reload this pagehttps://github.com/python/cpython/pull/101665
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Feb 7, 2023https://github.com/python/cpython/pull/101665#issue-1575039920
Please reload this pagehttps://github.com/python/cpython/pull/101665
Please reload this pagehttps://github.com/python/cpython/pull/101665
https://github.com/barneygale
pythonGH-101362https://github.com/python/cpython/issues/101362
: Call join() only when >1 argument supplied to pathli…https://github.com/python/cpython/pull/101665/commits/e0e9bd97839f9d32c59393f74fc75166f1c89599
e0e9bd9https://github.com/python/cpython/pull/101665/commits/e0e9bd97839f9d32c59393f74fc75166f1c89599
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
Feb 7, 2023https://github.com/python/cpython/pull/101665#event-8462251244
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Feb 7, 2023 https://github.com/python/cpython/pull/101665#ref-issue-1559071717
Optimize pathlib path construction #101362 https://github.com/python/cpython/issues/101362
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
February 7, 2023 22:02https://github.com/python/cpython/pull/101665#event-8462538255
https://github.com/barneygale
barneygalehttps://github.com/barneygale
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
Feb 7, 2023https://github.com/python/cpython/pull/101665#event-8462993518
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Mar 5, 2023 https://github.com/python/cpython/pull/101665#pullrequestreview-1325280383
View reviewed changes https://github.com/python/cpython/pull/101665/files/e0e9bd97839f9d32c59393f74fc75166f1c89599
hauntsaninjahttps://github.com/hauntsaninja
https://github.com/python/cpython/pull/101665#pullrequestreview-1325280383
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/101665
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Mar 5, 2023https://github.com/python/cpython/pull/101665#event-8668704280
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Mar 5, 2023 https://github.com/python/cpython/pull/101665#pullrequestreview-1325286545
View reviewed changes https://github.com/python/cpython/pull/101665/files/e0e9bd97839f9d32c59393f74fc75166f1c89599
AlexWaygoodhttps://github.com/AlexWaygood
https://github.com/python/cpython/pull/101665#pullrequestreview-1325286545
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@barneygalehttps://github.com/barneygale
Please reload this pagehttps://github.com/python/cpython/pull/101665
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
Mar 5, 2023https://github.com/python/cpython/pull/101665#event-8668768934
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
3572c86https://github.com/python/cpython/commit/3572c861d8e8f03c34793608e7e2221e116aaec0
Mar 5, 2023https://github.com/python/cpython/pull/101665#event-8668769724
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Mar 5, 2023https://github.com/python/cpython/pull/101665#event-8668769795
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Mar 5, 2023https://github.com/python/cpython/pull/101665#issuecomment-1455223280
Please reload this pagehttps://github.com/python/cpython/pull/101665
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Mar 5, 2023https://github.com/python/cpython/pull/101665#issuecomment-1455224033
3572c86https://github.com/python/cpython/commit/3572c861d8e8f03c34793608e7e2221e116aaec0
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/all/#builders/540/builds/4693https://buildbot.python.org/all/#builders/540/builds/4693
3572c86https://github.com/python/cpython/commit/3572c861d8e8f03c34793608e7e2221e116aaec0
https://buildbot.python.org/all/#builders/540/builds/4693https://buildbot.python.org/all/#builders/540/builds/4693
Please reload this pagehttps://github.com/python/cpython/pull/101665
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Mar 5, 2023https://github.com/python/cpython/pull/101665#issuecomment-1455224514
3572c86https://github.com/python/cpython/commit/3572c861d8e8f03c34793608e7e2221e116aaec0
Please reload this pagehttps://github.com/python/cpython/pull/101665
hugovkhttps://github.com/hugovk
Mar 6, 2023 https://github.com/python/cpython/pull/101665#ref-commit-07eea3e
https://github.com/barneygale
https://github.com/hugovk
pythonGH-101362https://github.com/python/cpython/issues/101362
: Call join() only when >1 argument supplied to pathli…https://github.com/hugovk/cpython/commit/07eea3edd2176d95f3511879df2c55fc6263fe18
07eea3ehttps://github.com/hugovk/cpython/commit/07eea3edd2176d95f3511879df2c55fc6263fe18
python#101665https://github.com/python/cpython/pull/101665
pythonGH-101362https://github.com/python/cpython/issues/101362
carljmhttps://github.com/carljm
Mar 6, 2023 https://github.com/python/cpython/pull/101665#ref-commit-33dda2a
https://github.com/carljm
Merge branch 'main' into nodeaddicthttps://github.com/carljm/cpython/commit/33dda2a03fc77ee30ef8d8cea0453040858f065f
33dda2ahttps://github.com/carljm/cpython/commit/33dda2a03fc77ee30ef8d8cea0453040858f065f
pythongh-102192https://github.com/python/cpython/issues/102192
python#102472https://github.com/python/cpython/pull/102472
pythongh-95672https://github.com/python/cpython/issues/95672
pythongh-102455https://github.com/python/cpython/pull/102455
pythongh-102416https://github.com/python/cpython/issues/102416
python#102467https://github.com/python/cpython/pull/102467
pythonGH-101362https://github.com/python/cpython/issues/101362
pythonGH-101667https://github.com/python/cpython/pull/101667
pythonGH-101362https://github.com/python/cpython/issues/101362
pythonGH-101664https://github.com/python/cpython/pull/101664
pythonGH-101362https://github.com/python/cpython/issues/101362
python#101665https://github.com/python/cpython/pull/101665
pythongh-102444https://github.com/python/cpython/issues/102444
python#102445https://github.com/python/cpython/pull/102445
pythonGH-102341https://github.com/python/cpython/issues/102341
python#102342https://github.com/python/cpython/pull/102342
pythonGH-102437https://github.com/python/cpython/pull/102437
pythongh-101979https://github.com/python/cpython/issues/101979
python#102318https://github.com/python/cpython/pull/102318
pythongh-102356https://github.com/python/cpython/issues/102356
python#102426https://github.com/python/cpython/pull/102426
python#101595https://github.com/python/cpython/pull/101595
pythonGH-97546https://github.com/python/cpython/issues/97546
python#102421https://github.com/python/cpython/pull/102421
pythongh-96821https://github.com/python/cpython/issues/96821
python#96823https://github.com/python/cpython/pull/96823
pythongh-101992https://github.com/python/cpython/issues/101992
python#102133https://github.com/python/cpython/pull/102133
pythongh-63301https://github.com/python/cpython/issues/63301
python#7699https://github.com/python/cpython/pull/7699
pythongh-101863https://github.com/python/cpython/issues/101863
pythongh-102417https://github.com/python/cpython/pull/102417
pythongh-102302https://github.com/python/cpython/issues/102302
python#102303https://github.com/python/cpython/pull/102303
pythongh-102179https://github.com/python/cpython/issues/102179
python#102180https://github.com/python/cpython/pull/102180
pythongh-101892https://github.com/python/cpython/issues/101892
python#101896https://github.com/python/cpython/pull/101896
carljmhttps://github.com/carljm
Mar 7, 2023 https://github.com/python/cpython/pull/101665#ref-commit-ecb313c
https://github.com/carljm
Merge branch 'main' into inlinecomp2https://github.com/carljm/cpython/commit/ecb313c0ee109f86e2be6e12f0526bbbd56d99eb
ecb313chttps://github.com/carljm/cpython/commit/ecb313c0ee109f86e2be6e12f0526bbbd56d99eb
pythongh-102192https://github.com/python/cpython/issues/102192
python#102472https://github.com/python/cpython/pull/102472
pythongh-95672https://github.com/python/cpython/issues/95672
pythongh-102455https://github.com/python/cpython/pull/102455
pythongh-102416https://github.com/python/cpython/issues/102416
python#102467https://github.com/python/cpython/pull/102467
pythonGH-101362https://github.com/python/cpython/issues/101362
pythonGH-101667https://github.com/python/cpython/pull/101667
pythonGH-101362https://github.com/python/cpython/issues/101362
pythonGH-101664https://github.com/python/cpython/pull/101664
pythonGH-101362https://github.com/python/cpython/issues/101362
python#101665https://github.com/python/cpython/pull/101665
pythongh-102444https://github.com/python/cpython/issues/102444
python#102445https://github.com/python/cpython/pull/102445
pythonGH-102341https://github.com/python/cpython/issues/102341
python#102342https://github.com/python/cpython/pull/102342
pythonGH-102437https://github.com/python/cpython/pull/102437
pythongh-101979https://github.com/python/cpython/issues/101979
python#102318https://github.com/python/cpython/pull/102318
pythongh-102356https://github.com/python/cpython/issues/102356
python#102426https://github.com/python/cpython/pull/102426
python#101595https://github.com/python/cpython/pull/101595
pythonGH-97546https://github.com/python/cpython/issues/97546
python#102421https://github.com/python/cpython/pull/102421
pythongh-96821https://github.com/python/cpython/issues/96821
python#96823https://github.com/python/cpython/pull/96823
pythongh-101992https://github.com/python/cpython/issues/101992
python#102133https://github.com/python/cpython/pull/102133
pythongh-63301https://github.com/python/cpython/issues/63301
python#7699https://github.com/python/cpython/pull/7699
pythongh-101863https://github.com/python/cpython/issues/101863
pythongh-102417https://github.com/python/cpython/pull/102417
pythongh-102302https://github.com/python/cpython/issues/102302
python#102303https://github.com/python/cpython/pull/102303
pythongh-102179https://github.com/python/cpython/issues/102179
python#102180https://github.com/python/cpython/pull/102180
pythongh-101892https://github.com/python/cpython/issues/101892
python#101896https://github.com/python/cpython/pull/101896
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Apr 5, 2023 https://github.com/python/cpython/pull/101665#ref-issue-1509838808
Support for sharing state between pathlib subclasses #100479 https://github.com/python/cpython/issues/100479
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%2F101665
https://github.com/hauntsaninja
hauntsaninja https://github.com/hauntsaninja
https://github.com/python/cpython/pull/101665/files/e0e9bd97839f9d32c59393f74fc75166f1c89599
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/cpython/pull/101665/files/e0e9bd97839f9d32c59393f74fc75166f1c89599
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
Please reload this pagehttps://github.com/python/cpython/pull/101665
https://github.com/barneygale
https://github.com/bedevere-bot
https://github.com/AlexWaygood
https://github.com/hauntsaninja
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.