René's URL Explorer Experiment


Title: bpo-40423: Optimization: use close_range(2) if available by kevans91 · Pull Request #22651 · python/cpython · GitHub

Open Graph Title: bpo-40423: Optimization: use close_range(2) if available by kevans91 · Pull Request #22651 · python/cpython

X Title: bpo-40423: Optimization: use close_range(2) if available by kevans91 · Pull Request #22651 · python/cpython

Description: close_range(2) should be preferred at all times if it's available, otherwise we'll use closefrom(2) if available with a fallback to fdwalk(3) or plain old loop over fd range in order of most effici...

Open Graph Description: close_range(2) should be preferred at all times if it's available, otherwise we'll use closefrom(2) if available with a fallback to fdwalk(3) or plain old loop over fd range in order of mos...

X Description: close_range(2) should be preferred at all times if it's available, otherwise we'll use closefrom(2) if available with a fallback to fdwalk(3) or plain old loop over fd range in orde...

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

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:37780d4d-94ee-021d-4621-95fa65e29589
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC818:2C09F1:807158:A47B18:696B18D0
html-safe-noncecf7b57c9c58ed4d2215faf247285ded560e586a3ff1f0c5d58d7e623f1a8dfd4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODE4OjJDMDlGMTo4MDcxNTg6QTQ3QjE4OjY5NkIxOEQwIiwidmlzaXRvcl9pZCI6Ijc3NjcxMjQ5MTk3Nzc0MzM4MDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac76d674e117be4761af8164ce40524a2d1ad5b960c8932a5b3b0c6d55769c9074
hovercard-subject-tagpull_request:501191327
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/22651/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/b8adb8bfd0d0a271dec451afc3c79fb502f48f8e19c99c58a4f6172a85169519/python/cpython/pull/22651
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b8adb8bfd0d0a271dec451afc3c79fb502f48f8e19c99c58a4f6172a85169519/python/cpython/pull/22651
og:image:altclose_range(2) should be preferred at all times if it's available, otherwise we'll use closefrom(2) if available with a fallback to fdwalk(3) or plain old loop over fd range in order of mos...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekevans91
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/22651#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F22651
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%2F22651
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/22651
Reloadhttps://github.com/python/cpython/pull/22651
Reloadhttps://github.com/python/cpython/pull/22651
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/22651
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/22651
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/22651#issue-comment-box
miss-islingtonhttps://github.com/miss-islington
python:masterhttps://github.com/python/cpython/tree/master
kevans91:close_rangehttps://github.com/kevans91/cpython/tree/close_range
bpo-40423: Optimization: use close_range(2) if available https://github.com/python/cpython/pull/22651#top
miss-islingtonhttps://github.com/miss-islington
python:masterhttps://github.com/python/cpython/tree/master
kevans91:close_rangehttps://github.com/kevans91/cpython/tree/close_range
Conversation 12 https://github.com/python/cpython/pull/22651
Commits 4 https://github.com/python/cpython/pull/22651/commits
Checks 0 https://github.com/python/cpython/pull/22651/checks
Files changed https://github.com/python/cpython/pull/22651/files
Please reload this pagehttps://github.com/python/cpython/pull/22651
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/kevans91
kevans91https://github.com/kevans91
Oct 11, 2020https://github.com/python/cpython/pull/22651#issue-718906776
Please reload this pagehttps://github.com/python/cpython/pull/22651
https://bugs.python.org/issue40423https://bugs.python.org/issue40423
@pablogsalhttps://github.com/pablogsal
Please reload this pagehttps://github.com/python/cpython/pull/22651
kevans91https://github.com/kevans91
October 11, 2020 14:01https://github.com/python/cpython/pull/22651#commits-pushed-a2b6c30
https://github.com/kevans91
configure: start checking for close_rangehttps://github.com/python/cpython/pull/22651/commits/a2b6c30e825eacbd39a1094ec94eb320e8087792
a2b6c30https://github.com/python/cpython/pull/22651/commits/a2b6c30e825eacbd39a1094ec94eb320e8087792
https://github.com/kevans91
_Py_closerange: add close_range(2) supporthttps://github.com/python/cpython/pull/22651/commits/fd8a00870ce0c8a8574eb640bbd62a1e043ba312
fd8a008https://github.com/python/cpython/pull/22651/commits/fd8a00870ce0c8a8574eb640bbd62a1e043ba312
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Oct 11, 2020https://github.com/python/cpython/pull/22651#event-3863997042
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
Oct 11, 2020https://github.com/python/cpython/pull/22651#event-3863997075
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 11, 2020https://github.com/python/cpython/pull/22651#event-3863999856
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/22651/commits/3081c11b411bb64c25a80bc6244bd056a9d027f2
3081c11https://github.com/python/cpython/pull/22651/commits/3081c11b411bb64c25a80bc6244bd056a9d027f2
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Oct 11, 2020 https://github.com/python/cpython/pull/22651#pullrequestreview-506208791
View reviewed changes https://github.com/python/cpython/pull/22651/files/3081c11b411bb64c25a80bc6244bd056a9d027f2
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
Oct 11, 2020https://github.com/python/cpython/pull/22651#event-3864002624
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
🤖 automerge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Arobot%3A%20automerge%22
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Oct 11, 2020https://github.com/python/cpython/pull/22651#event-3864003219
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Oct 11, 2020https://github.com/python/cpython/pull/22651#issuecomment-706756479
@kevans91https://github.com/kevans91
Please reload this pagehttps://github.com/python/cpython/pull/22651
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Oct 11, 2020 https://github.com/python/cpython/pull/22651#pullrequestreview-506209758
View reviewed changes https://github.com/python/cpython/pull/22651/files/3081c11b411bb64c25a80bc6244bd056a9d027f2
Modules/posixmodule.chttps://github.com/python/cpython/pull/22651/files/3081c11b411bb64c25a80bc6244bd056a9d027f2#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
Please reload this pagehttps://github.com/python/cpython/pull/22651
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
🤖 automerge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Arobot%3A%20automerge%22
Oct 11, 2020https://github.com/python/cpython/pull/22651#event-3864015809
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Oct 11, 2020https://github.com/python/cpython/pull/22651#issuecomment-706757142
Please reload this pagehttps://github.com/python/cpython/pull/22651
@gpsheadhttps://github.com/gpshead
Please reload this pagehttps://github.com/python/cpython/pull/22651
https://github.com/kevans91
_Py_closerange: last-minute braino, flip logic aroundhttps://github.com/python/cpython/pull/22651/commits/e1dc81975c036b622384e33ae4df0f41eb1bf193
e1dc819https://github.com/python/cpython/pull/22651/commits/e1dc81975c036b622384e33ae4df0f41eb1bf193
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Oct 11, 2020 https://github.com/python/cpython/pull/22651#pullrequestreview-506211263
View reviewed changes https://github.com/python/cpython/pull/22651/files/e1dc81975c036b622384e33ae4df0f41eb1bf193
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
🤖 automerge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Arobot%3A%20automerge%22
Oct 11, 2020https://github.com/python/cpython/pull/22651#event-3864030024
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
Oct 11, 2020https://github.com/python/cpython/pull/22651#issuecomment-706762631
@kevans91https://github.com/kevans91
Please reload this pagehttps://github.com/python/cpython/pull/22651
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
1800c60https://github.com/python/cpython/commit/1800c600801709958af66bebfa683a4e7570810f
Oct 11, 2020https://github.com/python/cpython/pull/22651#event-3864052159
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
Oct 11, 2020https://github.com/python/cpython/pull/22651#event-3864052197
https://github.com/python
pythonhttps://github.com/python
bedevere-bothttps://github.com/bedevere-bot
Oct 11, 2020https://github.com/python/cpython/pull/22651#event-3864064622
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Oct 11, 2020https://github.com/python/cpython/pull/22651#issuecomment-706765491
Please reload this pagehttps://github.com/python/cpython/pull/22651
1800c60https://github.com/python/cpython/commit/1800c600801709958af66bebfa683a4e7570810f
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/all/#builders/509/builds/172https://buildbot.python.org/all/#builders/509/builds/172
1800c60https://github.com/python/cpython/commit/1800c600801709958af66bebfa683a4e7570810f
https://buildbot.python.org/all/#builders/509/builds/172https://buildbot.python.org/all/#builders/509/builds/172
Please reload this pagehttps://github.com/python/cpython/pull/22651
https://github.com/cemeyer
cemeyerhttps://github.com/cemeyer
Oct 11, 2020 https://github.com/python/cpython/pull/22651#pullrequestreview-506215041
View reviewed changes https://github.com/python/cpython/pull/22651/files/e1dc81975c036b622384e33ae4df0f41eb1bf193
Modules/posixmodule.chttps://github.com/python/cpython/pull/22651/files/e1dc81975c036b622384e33ae4df0f41eb1bf193#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
cemeyerhttps://github.com/cemeyer
Oct 11, 2020https://github.com/python/cpython/pull/22651#discussion_r502963843
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22651
vstinnerhttps://github.com/vstinner
Oct 11, 2020https://github.com/python/cpython/pull/22651#discussion_r502974975
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22651
pablogsalhttps://github.com/pablogsal
Oct 11, 2020https://github.com/python/cpython/pull/22651#discussion_r502976733
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22651
gpsheadhttps://github.com/gpshead
Oct 11, 2020https://github.com/python/cpython/pull/22651#discussion_r502976802
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22651
vstinnerhttps://github.com/vstinner
Oct 11, 2020https://github.com/python/cpython/pull/22651#discussion_r502978501
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/22651
xzy3https://github.com/xzy3
Oct 18, 2020 https://github.com/python/cpython/pull/22651#ref-commit-9dce2e7
https://github.com/kevans91
bpo-40423: Optimization: use close_range(2) if available (https://github.com/xzy3/cpython/commit/9dce2e731caa253abc3b37b33fe942327e9be649
pythonGH-22651https://github.com/python/cpython/pull/22651
9dce2e7https://github.com/xzy3/cpython/commit/9dce2e731caa253abc3b37b33fe942327e9be649
https://github.com/python/cpython/pull/22651
@pablogsalhttps://github.com/pablogsal
adorilsonhttps://github.com/adorilson
Mar 13, 2021 https://github.com/python/cpython/pull/22651#ref-commit-da9cff1
https://github.com/kevans91
https://github.com/adorilson
bpo-40423: Optimization: use close_range(2) if available (https://github.com/adorilson/cpython/commit/da9cff160c43add2a27c1d3092645f445aa0f0db
pythonGH-22651https://github.com/python/cpython/pull/22651
da9cff1https://github.com/adorilson/cpython/commit/da9cff160c43add2a27c1d3092645f445aa0f0db
https://github.com/python/cpython/pull/22651
@pablogsalhttps://github.com/pablogsal
https://github.com/gpshead
gpsheadhttps://github.com/gpshead
Apr 10, 2022 https://github.com/python/cpython/pull/22651#ref-issue-1198847287
Locks in the standard library should be sanitized on fork #50970 https://github.com/python/cpython/issues/50970
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%2F22651
https://github.com/gpshead
gpshead https://github.com/gpshead
https://github.com/python/cpython/pull/22651/files/e1dc81975c036b622384e33ae4df0f41eb1bf193
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/22651/files/e1dc81975c036b622384e33ae4df0f41eb1bf193
https://github.com/pablogsal
pablogsal https://github.com/pablogsal
https://github.com/python/cpython/pull/22651/files/e1dc81975c036b622384e33ae4df0f41eb1bf193
https://github.com/cemeyer
cemeyer https://github.com/cemeyer
https://github.com/python/cpython/pull/22651/files/e1dc81975c036b622384e33ae4df0f41eb1bf193
https://github.com/gpshead
gpshead https://github.com/gpshead
type-feature https://github.com/python/cpython/issues?q=state%3Aopen%20label%3Atype-feature
Please reload this pagehttps://github.com/python/cpython/pull/22651
https://github.com/kevans91
https://github.com/miss-islington
https://github.com/pablogsal
https://github.com/bedevere-bot
https://github.com/gpshead
https://github.com/cemeyer
https://github.com/vstinner
https://github.com/the-knights-who-say-ni
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.