René's URL Explorer Experiment


Title: bpo-44945: Specialize BINARY_ADD by markshannon · Pull Request #27967 · python/cpython · GitHub

Open Graph Title: bpo-44945: Specialize BINARY_ADD by markshannon · Pull Request #27967 · python/cpython

X Title: bpo-44945: Specialize BINARY_ADD by markshannon · Pull Request #27967 · python/cpython

Description: Adds the following specializations: BINARY_ADD_ADAPTIVE BINARY_ADD_FLOAT BINARY_ADD_INT BINARY_ADD_UNICODE BINARY_ADD_UNICODE_INPLACE_FAST BINARY_ADD_UNICODE_INPLACE_FAST is needed to keep for ...: s = s + ... O(ln(n)), rather than O(n**2). About 1% faster https://bugs.python.org/issue44945

Open Graph Description: Adds the following specializations: BINARY_ADD_ADAPTIVE BINARY_ADD_FLOAT BINARY_ADD_INT BINARY_ADD_UNICODE BINARY_ADD_UNICODE_INPLACE_FAST BINARY_ADD_UNICODE_INPLACE_FAST is needed to keep for .....

X Description: Adds the following specializations: BINARY_ADD_ADAPTIVE BINARY_ADD_FLOAT BINARY_ADD_INT BINARY_ADD_UNICODE BINARY_ADD_UNICODE_INPLACE_FAST BINARY_ADD_UNICODE_INPLACE_FAST is needed to keep for .....

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1f23a61e-0cb0-2d55-ac3f-4220cccd8005
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD148:39252:F44CF6:1492F6F:6A570CD5
html-safe-nonceffb9f56919d06916fa2ff55782496847f91d9137a28b061a469ce4af5452d02a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTQ4OjM5MjUyOkY0NENGNjoxNDkyRjZGOjZBNTcwQ0Q1IiwidmlzaXRvcl9pZCI6IjQyMzE0NjMyOTg2MTk4NzA0MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacce49a0940a56c50935b6d26e41e672c181ec9767c33db88b60e49279d3276c36
hovercard-subject-tagpull_request:720374030
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/27967/files
twitter:imagehttps://avatars.githubusercontent.com/u/9448417?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/9448417?s=400&v=4
og:image:altAdds the following specializations: BINARY_ADD_ADAPTIVE BINARY_ADD_FLOAT BINARY_ADD_INT BINARY_ADD_UNICODE BINARY_ADD_UNICODE_INPLACE_FAST BINARY_ADD_UNICODE_INPLACE_FAST is needed to keep for .....
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2576d1f0198cf1588faf2edf27f1ed120903be10
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/27967/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F27967%2Ffiles
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%2F27967%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/27967/files
Reloadhttps://github.com/python/cpython/pull/27967/files
Reloadhttps://github.com/python/cpython/pull/27967/files
Please reload this pagehttps://github.com/python/cpython/pull/27967/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/27967/files
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
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
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
faster-cpython:specialize-binary-addhttps://github.com/faster-cpython/cpython/tree/specialize-binary-add
Conversation 13 https://github.com/python/cpython/pull/27967
Commits 15 https://github.com/python/cpython/pull/27967/commits
Checks 0 https://github.com/python/cpython/pull/27967/checks
Files changed https://github.com/python/cpython/pull/27967/files
Please reload this pagehttps://github.com/python/cpython/pull/27967/files
bpo-44945: Specialize BINARY_ADD https://github.com/python/cpython/pull/27967/files#top
Show all changes 15 commits https://github.com/python/cpython/pull/27967/files
3d0d2b3 Specialize BINARY_ADD. markshannon Aug 16, 2021 https://github.com/python/cpython/pull/27967/commits/3d0d2b3eb44dceb008bd9174ae53cc67a0ab6eb2
40ef9e6 Turn on stats markshannon Aug 17, 2021 https://github.com/python/cpython/pull/27967/commits/40ef9e6ff28d65d44e4b00a1cf216da15f8188d0
6837648 Turn on unicode concat specialization. markshannon Aug 17, 2021 https://github.com/python/cpython/pull/27967/commits/68376486f9d90d23671da1cadb7e1b2528db8df0
0c869ed Record cache hits for BINARY_ADD and add non-inplace unicode speciali… markshannon Aug 17, 2021 https://github.com/python/cpython/pull/27967/commits/0c869ed1dedf56db8ca00c873300c766ffb3edd2
d2dbd52 Turn off stats markshannon Aug 17, 2021 https://github.com/python/cpython/pull/27967/commits/d2dbd52dd9f94bf5c7cfb4e8c58b33e813ff54dd
52ed270 Merge branch 'main' into specialize-binary-add markshannon Aug 18, 2021 https://github.com/python/cpython/pull/27967/commits/52ed2704c0fd27e8ce6426517320fd806eadb13a
5cddffc Add NEWS. markshannon Aug 18, 2021 https://github.com/python/cpython/pull/27967/commits/5cddffc95ad63758c014d41a65eb436a70d1ea5c
a68664e Expose long_add for specialize opcode. markshannon Aug 23, 2021 https://github.com/python/cpython/pull/27967/commits/a68664eeaa07bd02731c7302b57d6580316e97fe
873ba62 Remove overly specialized BINARY_ADD_UNICODE_INPLACE_DEREF. markshannon Aug 24, 2021 https://github.com/python/cpython/pull/27967/commits/873ba62b5556e4b310e53d91909a4ec1e24c10cf
f7fc525 Merge branch 'main' into specialize-binary-add markshannon Aug 25, 2021 https://github.com/python/cpython/pull/27967/commits/f7fc525da7acff795b6b71f20b902c06c5635838
60ed8a2 Correct NEWS item markshannon Aug 25, 2021 https://github.com/python/cpython/pull/27967/commits/60ed8a2b7379e9acecd02a3cd5482268ea1fa5eb
648e215 Delete unused function markshannon Aug 25, 2021 https://github.com/python/cpython/pull/27967/commits/648e215e3d01a42faf61e5f44f9a33fa0eb9cb99
9dd054a Slight improvement to DEOPT checks in BINARY_ADD specializations. markshannon Aug 25, 2021 https://github.com/python/cpython/pull/27967/commits/9dd054a812dddd39f15fb4e4fa9b5536e82dec36
a22af9a Merge branch 'main' into specialize-binary-add markshannon Aug 25, 2021 https://github.com/python/cpython/pull/27967/commits/a22af9a827e0fcd33534c62f7e1354fbc14f31cc
3146f48 Set initial counts for BINARY_ADD specializations and fix refcount leak. markshannon Aug 26, 2021 https://github.com/python/cpython/pull/27967/commits/3146f48931cf37b59818225210b515a13a9693bc
Clear filters https://github.com/python/cpython/pull/27967/files
Please reload this pagehttps://github.com/python/cpython/pull/27967/files
Please reload this pagehttps://github.com/python/cpython/pull/27967/files
pycore_code.h https://github.com/python/cpython/pull/27967/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8
pycore_long.h https://github.com/python/cpython/pull/27967/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511
opcode.h https://github.com/python/cpython/pull/27967/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed
opcode.py https://github.com/python/cpython/pull/27967/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
2021-08-18-11-14-38.bpo-44945.CO3s77.rst https://github.com/python/cpython/pull/27967/files#diff-0e95fe66e551d4dc997c73f875e146bde28912bb6fda9086433fe37cd0766fda
longobject.c https://github.com/python/cpython/pull/27967/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
ceval.c https://github.com/python/cpython/pull/27967/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
opcode_targets.h https://github.com/python/cpython/pull/27967/files#diff-d3363a4083b77b9157d0bf07c2e87f3d3464a8b4360d5d23b07bbb23061f007a
specialize.c https://github.com/python/cpython/pull/27967/files#diff-22e653d878778ca28317261f7826545288d02fd9980cf485d0329f28a34993f2
Include/internal/pycore_code.hhttps://github.com/python/cpython/pull/27967/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8
View file https://github.com/faster-cpython/cpython/blob/3146f48931cf37b59818225210b515a13a9693bc/Include/internal/pycore_code.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/27967/{{ revealButtonHref }}
https://github.com/python/cpython/pull/27967/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8
https://github.com/python/cpython/pull/27967/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8
Include/internal/pycore_long.hhttps://github.com/python/cpython/pull/27967/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511
View file https://github.com/faster-cpython/cpython/blob/3146f48931cf37b59818225210b515a13a9693bc/Include/internal/pycore_long.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/27967/{{ revealButtonHref }}
https://github.com/python/cpython/pull/27967/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511
https://github.com/python/cpython/pull/27967/files#diff-0817b8ffc6c3af36ea39ebabafe70c849d6ee7cb6621d3bda857f3ed25a37511
Include/opcode.hhttps://github.com/python/cpython/pull/27967/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed
View file https://github.com/faster-cpython/cpython/blob/3146f48931cf37b59818225210b515a13a9693bc/Include/opcode.h
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://github.com/python/cpython/pull/27967/files
Lib/opcode.pyhttps://github.com/python/cpython/pull/27967/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
View file https://github.com/faster-cpython/cpython/blob/3146f48931cf37b59818225210b515a13a9693bc/Lib/opcode.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/27967/{{ revealButtonHref }}
https://github.com/python/cpython/pull/27967/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
https://github.com/python/cpython/pull/27967/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb
Misc/NEWS.d/next/Core and Builtins/2021-08-18-11-14-38.bpo-44945.CO3s77.rsthttps://github.com/python/cpython/pull/27967/files#diff-0e95fe66e551d4dc997c73f875e146bde28912bb6fda9086433fe37cd0766fda
View file https://github.com/faster-cpython/cpython/blob/3146f48931cf37b59818225210b515a13a9693bc/Misc/NEWS.d/next/Core%20and%20Builtins/2021-08-18-11-14-38.bpo-44945.CO3s77.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/27967/{{ revealButtonHref }}
Objects/longobject.chttps://github.com/python/cpython/pull/27967/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
View file https://github.com/faster-cpython/cpython/blob/3146f48931cf37b59818225210b515a13a9693bc/Objects/longobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/27967/{{ revealButtonHref }}
https://github.com/python/cpython/pull/27967/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
https://github.com/python/cpython/pull/27967/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
https://github.com/python/cpython/pull/27967/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L226
Python/ceval.chttps://github.com/python/cpython/pull/27967/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
View file https://github.com/faster-cpython/cpython/blob/3146f48931cf37b59818225210b515a13a9693bc/Python/ceval.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/27967/{{ revealButtonHref }}
https://github.com/python/cpython/pull/27967/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
https://github.com/python/cpython/pull/27967/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
https://github.com/python/cpython/pull/27967/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
Fidget-Spinnerhttps://github.com/Fidget-Spinner
Aug 26, 2021https://github.com/python/cpython/pull/27967/files#r696688587
Please reload this pagehttps://github.com/python/cpython/pull/27967/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/27967/files
markshannonhttps://github.com/markshannon
Aug 26, 2021https://github.com/python/cpython/pull/27967/files#r696714001
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/27967/files
https://github.com/python/cpython/pull/27967/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
https://github.com/python/cpython/pull/27967/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
https://github.com/python/cpython/pull/27967/files#diff-c22186367cbe20233e843261998dc027ae5f1f8c0d2e778abfa454ae74cc59de
Please reload this pagehttps://github.com/python/cpython/pull/27967/files
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.