René's URL Explorer Experiment


Title: bpo-37207: Use vectorcall for range() by encukou · Pull Request #18464 · python/cpython · GitHub

Open Graph Title: bpo-37207: Use vectorcall for range() by encukou · Pull Request #18464 · python/cpython

X Title: bpo-37207: Use vectorcall for range() by encukou · Pull Request #18464 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This continues the range() part of #13930. The complete pull request is stalled on discussions around dicts, but range() should not be controversial. (And I plan to open PRs for other parts if this...

X Description: This continues the range() part of #13930. The complete pull request is stalled on discussions around dicts, but range() should not be controversial. (And I plan to open PRs for other parts if this...

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

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:f441ee3c-1488-853a-0876-aeac0ea86706
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD652:2A0FAF:7B0B99:A9C955:6A538C5A
html-safe-nonce9e0c84e120f5e3dd2dbcb473e385ac51de95fe1813344843e3744d18e1fdb189
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjUyOjJBMEZBRjo3QjBCOTk6QTlDOTU1OjZBNTM4QzVBIiwidmlzaXRvcl9pZCI6IjY2MTk5Mzc0NTQyMjQwMTg1MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacfb2d8e731b848a4c2fdeaef6adf883ebc728a6b80a1a707dc6e04a057d243e7f
hovercard-subject-tagpull_request:373760546
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/18464/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/107c0996c945fae20ed65fbf2b1cc6593355a2a63687860608cd9d50179ff682/python/cpython/pull/18464
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/107c0996c945fae20ed65fbf2b1cc6593355a2a63687860608cd9d50179ff682/python/cpython/pull/18464
og:image:altThis continues the range() part of #13930. The complete pull request is stalled on discussions around dicts, but range() should not be controversial. (And I plan to open PRs for other parts if this...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
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
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/18464#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F18464
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2F18464
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/18464
Reloadhttps://github.com/python/cpython/pull/18464
Reloadhttps://github.com/python/cpython/pull/18464
Please reload this pagehttps://github.com/python/cpython/pull/18464
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/18464
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
miss-islingtonhttps://github.com/miss-islington
python:masterhttps://github.com/python/cpython/tree/master
encukou:vectorcall-newrangehttps://github.com/encukou/cpython/tree/vectorcall-newrange
Conversationhttps://github.com/python/cpython/pull/18464
Commits5 (5)https://github.com/python/cpython/pull/18464/commits
Checkshttps://github.com/python/cpython/pull/18464/checks
Files changedhttps://github.com/python/cpython/pull/18464/files
bpo-37207: Use vectorcall for range()https://github.com/python/cpython/pull/18464#top
miss-islingtonhttps://github.com/miss-islington
python:masterhttps://github.com/python/cpython/tree/master
encukou:vectorcall-newrangehttps://github.com/encukou/cpython/tree/vectorcall-newrange
https://github.com/encukou
encukouhttps://github.com/encukou
Feb 11, 2020https://github.com/python/cpython/pull/18464#issue-563330493
Please reload this pagehttps://github.com/python/cpython/pull/18464
#13930https://github.com/python/cpython/pull/13930
https://bugs.python.org/issue37207https://bugs.python.org/issue37207
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/18464
markshannonhttps://github.com/markshannon
February 11, 2020 17:08https://github.com/python/cpython/pull/18464#commits-pushed-b4f3271
https://github.com/markshannon
https://github.com/encukou
Use vectorcall for range()https://github.com/python/cpython/pull/18464/commits/b4f32714c6140ef3ee3e15367760cf358e7316fb
b4f3271https://github.com/python/cpython/pull/18464/commits/b4f32714c6140ef3ee3e15367760cf358e7316fb
https://github.com/encukou
Add news entry.https://github.com/python/cpython/pull/18464/commits/6d8063baab2623b14196553457a0bc473dc6d69f
6d8063bhttps://github.com/python/cpython/pull/18464/commits/6d8063baab2623b14196553457a0bc473dc6d69f
https://github.com/encukou
Unify implementations of range_new and range_vectorcallhttps://github.com/python/cpython/pull/18464/commits/804e18c1bc5f525095f131d3cbc6a9873b7b692d
804e18chttps://github.com/python/cpython/pull/18464/commits/804e18c1bc5f525095f131d3cbc6a9873b7b692d
https://github.com/encukou
encukouhttps://github.com/encukou
jdemeyerhttps://github.com/jdemeyer
markshannonhttps://github.com/markshannon
methanehttps://github.com/methane
tirkarthihttps://github.com/tirkarthi
February 11, 2020 16:37https://github.com/python/cpython/pull/18464#event-3027307783
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
Feb 11, 2020https://github.com/python/cpython/pull/18464#event-3027307966
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Feb 11, 2020https://github.com/python/cpython/pull/18464#event-3027308186
https://github.com/encukou
encukouhttps://github.com/encukou
Feb 11, 2020 https://github.com/python/cpython/pull/18464#ref-pullrequest-453880873
bpo-37207: Use PEP 590 vectorcall to speed up range(), list() and dict() by about 30% #13930 https://github.com/python/cpython/pull/13930
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Feb 11, 2020 https://github.com/python/cpython/pull/18464#pullrequestreview-356821979
View reviewed changes https://github.com/python/cpython/pull/18464/files/804e18c1bc5f525095f131d3cbc6a9873b7b692d
Objects/rangeobject.chttps://github.com/python/cpython/pull/18464/files/804e18c1bc5f525095f131d3cbc6a9873b7b692d#diff-57cf7b657aa9de8cff0fe5dd08e43061fd5dae05dfd8446f99831fd1f7e0230d
vstinnerhttps://github.com/vstinner
Feb 11, 2020https://github.com/python/cpython/pull/18464#discussion_r377762410
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://bugs.python.org/issue39611https://bugs.python.org/issue39611
Please reload this pagehttps://github.com/python/cpython/pull/18464
encukouhttps://github.com/encukou
Feb 18, 2020https://github.com/python/cpython/pull/18464#discussion_r380636485
Please reload this pagehttps://github.com/python/cpython/pull/18464
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/18464
Objects/rangeobject.chttps://github.com/python/cpython/pull/18464/files/804e18c1bc5f525095f131d3cbc6a9873b7b692d#diff-57cf7b657aa9de8cff0fe5dd08e43061fd5dae05dfd8446f99831fd1f7e0230d
vstinnerhttps://github.com/vstinner
Feb 11, 2020https://github.com/python/cpython/pull/18464#discussion_r377762886
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/18464
encukouhttps://github.com/encukou
Feb 18, 2020https://github.com/python/cpython/pull/18464#discussion_r380635447
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/18464
https://github.com/apps/codecov
codecovhttps://github.com/apps/codecov
Feb 11, 2020https://github.com/python/cpython/pull/18464#issuecomment-584740491
Please reload this pagehttps://github.com/python/cpython/pull/18464
Codecovhttps://codecov.io/gh/python/cpython/pull/18464?src=pr&el=h1
#18464https://codecov.io/gh/python/cpython/pull/18464?src=pr&el=desc
masterhttps://codecov.io/gh/python/cpython/commit/f3e7ea5b8c220cd63101e419d529c8563f9c6115&el=desc
https://codecov.io/gh/python/cpython/pull/18464?src=pr&el=tree
Impacted Fileshttps://codecov.io/gh/python/cpython/pull/18464?src=pr&el=tree
Lib/distutils/tests/test_bdist_rpm.pyhttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree#diff-TGliL2Rpc3R1dGlscy90ZXN0cy90ZXN0X2JkaXN0X3JwbS5weQ==
Lib/distutils/command/bdist_rpm.pyhttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree#diff-TGliL2Rpc3R1dGlscy9jb21tYW5kL2JkaXN0X3JwbS5weQ==
Lib/test/test_urllib2net.pyhttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree#diff-TGliL3Rlc3QvdGVzdF91cmxsaWIybmV0LnB5
Lib/test/test_smtpnet.pyhttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree#diff-TGliL3Rlc3QvdGVzdF9zbXRwbmV0LnB5
Lib/ftplib.pyhttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree#diff-TGliL2Z0cGxpYi5weQ==
Lib/test/test_ftplib.pyhttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree#diff-TGliL3Rlc3QvdGVzdF9mdHBsaWIucHk=
Tools/scripts/db2pickle.pyhttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree#diff-VG9vbHMvc2NyaXB0cy9kYjJwaWNrbGUucHk=
Tools/scripts/pickle2db.pyhttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree#diff-VG9vbHMvc2NyaXB0cy9waWNrbGUyZGIucHk=
Lib/test/test_socket.pyhttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree#diff-TGliL3Rlc3QvdGVzdF9zb2NrZXQucHk=
Lib/test/test_asyncio/test_base_events.pyhttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree#diff-TGliL3Rlc3QvdGVzdF9hc3luY2lvL3Rlc3RfYmFzZV9ldmVudHMucHk=
465 morehttps://codecov.io/gh/python/cpython/pull/18464/diff?src=pr&el=tree-more
Continue to review full report at Codecovhttps://codecov.io/gh/python/cpython/pull/18464?src=pr&el=continue
Click here to learn morehttps://docs.codecov.io/docs/codecov-delta
Codecovhttps://codecov.io/gh/python/cpython/pull/18464?src=pr&el=footer
f3e7ea5...b4559cehttps://codecov.io/gh/python/cpython/pull/18464?src=pr&el=lastupdated
comment docshttps://docs.codecov.io/docs/pull-request-comments
Please reload this pagehttps://github.com/python/cpython/pull/18464
https://github.com/encukou
Use Py_ssize_t for number of argumentshttps://github.com/python/cpython/pull/18464/commits/663d8cc6e4eec78225c66116396a1799e93a3caa
663d8cchttps://github.com/python/cpython/pull/18464/commits/663d8cc6e4eec78225c66116396a1799e93a3caa
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Feb 18, 2020 https://github.com/python/cpython/pull/18464#pullrequestreview-360343808
View reviewed changes https://github.com/python/cpython/pull/18464/files/663d8cc6e4eec78225c66116396a1799e93a3caa
Objects/rangeobject.chttps://github.com/python/cpython/pull/18464/files/663d8cc6e4eec78225c66116396a1799e93a3caa#diff-57cf7b657aa9de8cff0fe5dd08e43061fd5dae05dfd8446f99831fd1f7e0230d
vstinnerhttps://github.com/vstinner
Feb 18, 2020https://github.com/python/cpython/pull/18464#discussion_r380676929
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/18464
encukouhttps://github.com/encukou
Feb 18, 2020https://github.com/python/cpython/pull/18464#discussion_r380682904
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/18464
https://github.com/encukou
Reset format argument for Py_ssize_t to %zdhttps://github.com/python/cpython/pull/18464/commits/b4559ce7e3b533c4fb46889ba2f1bd762127b67a
b4559cehttps://github.com/python/cpython/pull/18464/commits/b4559ce7e3b533c4fb46889ba2f1bd762127b67a
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Feb 18, 2020 https://github.com/python/cpython/pull/18464#pullrequestreview-360358491
View reviewed changes https://github.com/python/cpython/pull/18464/files/b4559ce7e3b533c4fb46889ba2f1bd762127b67a
vstinnerhttps://github.com/vstinner
https://github.com/python/cpython/pull/18464#pullrequestreview-360358491
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/18464
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 core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Feb 18, 2020https://github.com/python/cpython/pull/18464#event-3047255461
https://github.com/encukou
encukouhttps://github.com/encukou
🤖 automerge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22%3Arobot%3A%20automerge%22
Feb 18, 2020https://github.com/python/cpython/pull/18464#event-3047554001
https://github.com/miss-islington
miss-islingtonhttps://github.com/miss-islington
6e35da9https://github.com/python/cpython/commit/6e35da976370e7c2e028165c65d7d7d42772a71f
Feb 18, 2020https://github.com/python/cpython/pull/18464#event-3047554497
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
Feb 18, 2020https://github.com/python/cpython/pull/18464#event-3047554802
https://github.com/encukou
encukouhttps://github.com/encukou
February 18, 2020 15:13https://github.com/python/cpython/pull/18464#event-3047555233
https://github.com/encukou
encukouhttps://github.com/encukou
Mar 11, 2020 https://github.com/python/cpython/pull/18464#ref-pullrequest-579337114
bpo-37207: Use vertorcall for list() #18928 https://github.com/python/cpython/pull/18928
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
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%2F18464
https://github.com/vstinner
vstinner https://github.com/vstinner
https://github.com/python/cpython/pull/18464/files/b4559ce7e3b533c4fb46889ba2f1bd762127b67a
https://github.com/methane
methane https://github.com/methane
https://github.com/jdemeyer
jdemeyer https://github.com/jdemeyer
https://github.com/tirkarthi
tirkarthi https://github.com/tirkarthi
https://github.com/markshannon
markshannon https://github.com/markshannon
Please reload this pagehttps://github.com/python/cpython/pull/18464
https://github.com/encukou
https://github.com/vstinner
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
https://github.com/miss-islington
https://github.com/markshannon
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.