René's URL Explorer Experiment


Title: gh-100562: improve performance of `pathlib.Path.absolute()` by barneygale · Pull Request #100563 · python/cpython · GitHub

Open Graph Title: gh-100562: improve performance of `pathlib.Path.absolute()` by barneygale · Pull Request #100563 · python/cpython

X Title: gh-100562: improve performance of `pathlib.Path.absolute()` by barneygale · Pull Request #100563 · python/cpython

Description: Increase performance of the absolute() method by calling os.getcwd() directly, rather than using the Path.cwd() class method. This avoids constructing an extra Path object (and the parsing/normaliz...

Open Graph Description: Increase performance of the absolute() method by calling os.getcwd() directly, rather than using the Path.cwd() class method. This avoids constructing an extra Path object (and the parsing/normaliz...

X Description: Increase performance of the absolute() method by calling os.getcwd() directly, rather than using the Path.cwd() class method. This avoids constructing an extra Path object (and the parsing/normaliz...

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

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:e1485492-bf15-c054-dd03-d5949edfdec6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA106:385F9F:2888D42:36CA903:696AE404
html-safe-nonce6fba0ba53a61a71a73ca4b8eb7eff61bb8ad469a45cf405dd2449c212ab361ff
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTA2OjM4NUY5RjoyODg4RDQyOjM2Q0E5MDM6Njk2QUU0MDQiLCJ2aXNpdG9yX2lkIjoiMjczMjQ0MzI1NzU4NzU1NzM4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacce940a848dd1c2dff9ce3fd5c46b0a67fd3e969fca698aad1350aafe19c0a891
hovercard-subject-tagpull_request:1178981134
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/100563/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ec5183269a4983e4a06fed6b58e37e3687da390676171d620abede2d6fc4a30e/python/cpython/pull/100563
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ec5183269a4983e4a06fed6b58e37e3687da390676171d620abede2d6fc4a30e/python/cpython/pull/100563
og:image:altIncrease performance of the absolute() method by calling os.getcwd() directly, rather than using the Path.cwd() class method. This avoids constructing an extra Path object (and the parsing/normaliz...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarneygale
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
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
release3d84d50b3c75fa36755c3cf392edbc09e626f979
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/100563#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F100563
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%2F100563
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/100563
Reloadhttps://github.com/python/cpython/pull/100563
Reloadhttps://github.com/python/cpython/pull/100563
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/100563
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/100563
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/100563#issue-comment-box
miss-islingtonhttps://github.com/miss-islington
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-100562-path-absolute-perfhttps://github.com/barneygale/cpython/tree/gh-100562-path-absolute-perf
gh-100562: improve performance of pathlib.Path.absolute() https://github.com/python/cpython/pull/100563#top
miss-islingtonhttps://github.com/miss-islington
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-100562-path-absolute-perfhttps://github.com/barneygale/cpython/tree/gh-100562-path-absolute-perf
Conversation 15 https://github.com/python/cpython/pull/100563
Commits 4 https://github.com/python/cpython/pull/100563/commits
Checks 0 https://github.com/python/cpython/pull/100563/checks
Files changed https://github.com/python/cpython/pull/100563/files
Please reload this pagehttps://github.com/python/cpython/pull/100563
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Dec 28, 2022https://github.com/python/cpython/pull/100563#issue-1512291769
Please reload this pagehttps://github.com/python/cpython/pull/100563
Improve performance of pathlib.Path.absolute() #100562https://github.com/python/cpython/issues/100562
Please reload this pagehttps://github.com/python/cpython/pull/100563
https://github.com/barneygale
pythongh-100562https://github.com/python/cpython/issues/100562
: improve performance ofhttps://github.com/python/cpython/pull/100563/commits/d386e9557d0d0dd7fd4759396206f9062f868bb6
pathlib.Path.absolute()https://github.com/python/cpython/pull/100563/commits/d386e9557d0d0dd7fd4759396206f9062f868bb6
d386e95https://github.com/python/cpython/pull/100563/commits/d386e9557d0d0dd7fd4759396206f9062f868bb6
https://github.com/barneygale
barneygalehttps://github.com/barneygale
brettcannonhttps://github.com/brettcannon
code ownerhttps://github.com/python/cpython/blob/b0ea28913e3bf684ef847a71afcdfa8224bab63d/.github/CODEOWNERS#L156
December 28, 2022 00:43https://github.com/python/cpython/pull/100563#event-8118306240
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Dec 28, 2022 https://github.com/python/cpython/pull/100563#ref-issue-1512282456
Improve performance of pathlib.Path.absolute() #100562 https://github.com/python/cpython/issues/100562
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
Dec 28, 2022https://github.com/python/cpython/pull/100563#event-8118306386
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
performance https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Aperformance
3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.12
Dec 28, 2022https://github.com/python/cpython/pull/100563#event-8118348495
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
December 28, 2022 01:02https://github.com/python/cpython/pull/100563#event-8118348814
https://github.com/eryksun
eryksunhttps://github.com/eryksun
Dec 28, 2022 https://github.com/python/cpython/pull/100563#pullrequestreview-1231151831
View reviewed changes https://github.com/python/cpython/pull/100563/files/d386e9557d0d0dd7fd4759396206f9062f868bb6
Lib/pathlib.pyhttps://github.com/python/cpython/pull/100563/files/d386e9557d0d0dd7fd4759396206f9062f868bb6#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
Please reload this pagehttps://github.com/python/cpython/pull/100563
https://github.com/merwok
merwokhttps://github.com/merwok
Dec 29, 2022 https://github.com/python/cpython/pull/100563#pullrequestreview-1232670803
View reviewed changes https://github.com/python/cpython/pull/100563/files/d386e9557d0d0dd7fd4759396206f9062f868bb6
Lib/pathlib.pyhttps://github.com/python/cpython/pull/100563/files/d386e9557d0d0dd7fd4759396206f9062f868bb6#diff-fa525485738fc33d05b06c159172ff1f319c26e88d8c6bb39f7dbaae4dc4105c
Please reload this pagehttps://github.com/python/cpython/pull/100563
https://github.com/barneygale
Improve cwd() docstring, add comment.https://github.com/python/cpython/pull/100563/commits/c71e3647f270ea0771c8f77e7e98b2e96cbdb388
c71e364https://github.com/python/cpython/pull/100563/commits/c71e3647f270ea0771c8f77e7e98b2e96cbdb388
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 5, 2023 https://github.com/python/cpython/pull/100563#pullrequestreview-1238050319
View reviewed changes https://github.com/python/cpython/pull/100563/files/c71e3647f270ea0771c8f77e7e98b2e96cbdb388
AlexWaygoodhttps://github.com/AlexWaygood
https://github.com/python/cpython/pull/100563#pullrequestreview-1238050319
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#100563 (comment)https://github.com/python/cpython/pull/100563#discussion_r1058004995
Please reload this pagehttps://github.com/python/cpython/pull/100563
Misc/NEWS.d/next/Library/2022-12-28-00-28-43.gh-issue-100562.Hic0Z0.rsthttps://github.com/python/cpython/pull/100563/files/c71e3647f270ea0771c8f77e7e98b2e96cbdb388#diff-a4b926a2ad02030e7450824e0ad8b83f1a08631db8279dbe35f7618a00d5844f
Please reload this pagehttps://github.com/python/cpython/pull/100563
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
Jan 5, 2023https://github.com/python/cpython/pull/100563#event-8163994825
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
topic-pathlib https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atopic-pathlib
Jan 5, 2023https://github.com/python/cpython/pull/100563#event-8164009852
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Jan 5, 2023https://github.com/python/cpython/pull/100563#issuecomment-1372792035
#100563 (comment)https://github.com/python/cpython/pull/100563#discussion_r1058004995
Please reload this pagehttps://github.com/python/cpython/pull/100563
https://github.com/barneygale
https://github.com/AlexWaygood
Update Misc/NEWS.d/next/Library/2022-12-28-00-28-43.gh-issue-100562.H…https://github.com/python/cpython/pull/100563/commits/43e5d21a292699bfe699e0dd1f9092c7f768153d
43e5d21https://github.com/python/cpython/pull/100563/commits/43e5d21a292699bfe699e0dd1f9092c7f768153d
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 5, 2023https://github.com/python/cpython/pull/100563#issuecomment-1372796216
Please reload this pagehttps://github.com/python/cpython/pull/100563
#100778https://github.com/python/cpython/pull/100778
Please reload this pagehttps://github.com/python/cpython/pull/100563
https://github.com/AlexWaygood
Merge branch 'main' intohttps://github.com/python/cpython/pull/100563/commits/031c322f1aa8318f5e06568a052a4d3a75d816e8
pythongh-100562https://github.com/python/cpython/issues/100562
-path-absolute-perfhttps://github.com/python/cpython/pull/100563/commits/031c322f1aa8318f5e06568a052a4d3a75d816e8
031c322https://github.com/python/cpython/pull/100563/commits/031c322f1aa8318f5e06568a052a4d3a75d816e8
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
🤖 automerge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Arobot%3A%20automerge%22
Jan 5, 2023https://github.com/python/cpython/pull/100563#event-8164229575
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 5, 2023https://github.com/python/cpython/pull/100563#event-8164247362
Improve performance of pathlib.Path.absolute() #100562 https://github.com/python/cpython/issues/100562
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Jan 5, 2023https://github.com/python/cpython/pull/100563#issuecomment-1372847983
Please reload this pagehttps://github.com/python/cpython/pull/100563
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
7fba99ehttps://github.com/python/cpython/commit/7fba99eadb3349a6d49d02f13b1fddf44c674393
Jan 5, 2023https://github.com/python/cpython/pull/100563#event-8164381665
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
Jan 5, 2023https://github.com/python/cpython/pull/100563#event-8164381952
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Jan 5, 2023https://github.com/python/cpython/pull/100563#issuecomment-1372918513
7fba99ehttps://github.com/python/cpython/commit/7fba99eadb3349a6d49d02f13b1fddf44c674393
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/all/#builders/424/builds/3233https://buildbot.python.org/all/#builders/424/builds/3233
7fba99ehttps://github.com/python/cpython/commit/7fba99eadb3349a6d49d02f13b1fddf44c674393
https://buildbot.python.org/all/#builders/424/builds/3233https://buildbot.python.org/all/#builders/424/builds/3233
Please reload this pagehttps://github.com/python/cpython/pull/100563
https://github.com/AlexWaygood
AlexWaygoodhttps://github.com/AlexWaygood
Jan 5, 2023https://github.com/python/cpython/pull/100563#issuecomment-1372920541
Please reload this pagehttps://github.com/python/cpython/pull/100563
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%2F100563
https://github.com/merwok
merwok https://github.com/merwok
https://github.com/python/cpython/pull/100563/files/c71e3647f270ea0771c8f77e7e98b2e96cbdb388
https://github.com/eryksun
eryksun https://github.com/eryksun
https://github.com/python/cpython/pull/100563/files/d386e9557d0d0dd7fd4759396206f9062f868bb6
https://github.com/AlexWaygood
AlexWaygood https://github.com/AlexWaygood
https://github.com/python/cpython/pull/100563/files/c71e3647f270ea0771c8f77e7e98b2e96cbdb388
https://github.com/brettcannon
brettcannon https://github.com/brettcannon
3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A3.12
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
Improve performance of pathlib.Path.absolute() https://github.com/python/cpython/issues/100562
Please reload this pagehttps://github.com/python/cpython/pull/100563
https://github.com/barneygale
https://github.com/AlexWaygood
https://github.com/miss-islington
https://github.com/bedevere-bot
https://github.com/merwok
https://github.com/eryksun
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.