René's URL Explorer Experiment


Title: gh-90213: Speed up right shifts of negative integers by mdickinson · Pull Request #30277 · python/cpython · GitHub

Open Graph Title: gh-90213: Speed up right shifts of negative integers by mdickinson · Pull Request #30277 · python/cpython

X Title: gh-90213: Speed up right shifts of negative integers by mdickinson · Pull Request #30277 · python/cpython

Description: Taking some ideas from the work of @xuxinhang in #30044, this PR makes right shift of negative integers more efficient, by avoiding the need for temporary intermediate results. Closes #90213 https://bugs.python.org/issue46055

Open Graph Description: Taking some ideas from the work of @xuxinhang in #30044, this PR makes right shift of negative integers more efficient, by avoiding the need for temporary intermediate results. Closes #90213 https...

X Description: Taking some ideas from the work of @xuxinhang in #30044, this PR makes right shift of negative integers more efficient, by avoiding the need for temporary intermediate results. Closes #90213 https...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:91c52c62-73ea-12f8-613b-cf7407075955
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB59C:356387:8C757F:B56C14:696B1AC7
html-safe-nonce87f78523e92fcaad0b6b39a893f34b88419e195a4cfa292f7b04493c2cb9cdd2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTlDOjM1NjM4Nzo4Qzc1N0Y6QjU2QzE0OjY5NkIxQUM3IiwidmlzaXRvcl9pZCI6Ijc4NTU5OTIyNTg2MzU0MzQ5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac45e4bcd1035cb6bed38a2000485bc0493bf22d93f585b7fd7808c8d09fe4b5f1
hovercard-subject-tagpull_request:810622612
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/30277/files
twitter:imagehttps://avatars.githubusercontent.com/u/662003?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/662003?s=400&v=4
og:image:altTaking some ideas from the work of @xuxinhang in #30044, this PR makes right shift of negative integers more efficient, by avoiding the need for temporary intermediate results. Closes #90213 https...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/30277/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F30277%2Ffiles
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%2F30277%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/30277/files
Reloadhttps://github.com/python/cpython/pull/30277/files
Reloadhttps://github.com/python/cpython/pull/30277/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/30277/files
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/30277/files
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
markshannonhttps://github.com/markshannon
python:mainhttps://github.com/python/cpython/tree/main
mdickinson:faster-rshift-of-negativehttps://github.com/mdickinson/cpython/tree/faster-rshift-of-negative
Conversation 34 https://github.com/python/cpython/pull/30277
Commits 15 https://github.com/python/cpython/pull/30277/commits
Checks 0 https://github.com/python/cpython/pull/30277/checks
Files changed https://github.com/python/cpython/pull/30277/files
Please reload this pagehttps://github.com/python/cpython/pull/30277/files
gh-90213: Speed up right shifts of negative integers https://github.com/python/cpython/pull/30277/files#top
Show all changes 15 commits https://github.com/python/cpython/pull/30277/files
9bf9dcd bpo-46055: Speed up right shifts of negative integers mdickinson Dec 27, 2021 https://github.com/python/cpython/pull/30277/commits/9bf9dcdd3342e9e770de23439065d46e07401a5c
ad69e48 Rework to remove duplication and move the shift==0 check earlier. mdickinson Dec 28, 2021 https://github.com/python/cpython/pull/30277/commits/ad69e48167b2719a5435a5915a57357a24f9add7
cf7de3b Update NEWS.d entry mdickinson Dec 28, 2021 https://github.com/python/cpython/pull/30277/commits/cf7de3b61ce7ef946a8ff5a067dead6dd1ff61cb
41de654 Revert unrelated spacing change mdickinson Dec 28, 2021 https://github.com/python/cpython/pull/30277/commits/41de654f314beec029806b57e5d3de9834509281
27843b1 Fix unidiomatic decrement mdickinson Dec 28, 2021 https://github.com/python/cpython/pull/30277/commits/27843b180f4267667a5639c30a7430e1d8b3644a
53a4e24 Don't handle the shift==0 special-case until we need to mdickinson Dec 28, 2021 https://github.com/python/cpython/pull/30277/commits/53a4e245f931eac4fbce4acae4c44dda55bad813
b3a1a8f Fix incompatible types mdickinson Dec 28, 2021 https://github.com/python/cpython/pull/30277/commits/b3a1a8f9d09f094cf2821da9bd3453ac6d750884
fd4ce81 Comment updates mdickinson Jan 9, 2022 https://github.com/python/cpython/pull/30277/commits/fd4ce81854531f419bd0617cd984c346038e3f60
447e508 Updates from review mdickinson Apr 12, 2022 https://github.com/python/cpython/pull/30277/commits/447e508c517f3e4a20520ac16a4eebb88ea37f7b
1bf4063 Clean up loop declarations mdickinson Apr 12, 2022 https://github.com/python/cpython/pull/30277/commits/1bf40635e705cec8a47e5cf33b98000a0ecb78d1
cfe47ac Fix comment mdickinson Apr 12, 2022 https://github.com/python/cpython/pull/30277/commits/cfe47ac5b1c688618362bd652680da18fc5fc12d
68e10a3 Remove an unnecessary 'else' branch mdickinson Apr 12, 2022 https://github.com/python/cpython/pull/30277/commits/68e10a3d16de71eb0a49cea0272b4d24d5deaac8
5d8d8ef New news entry mdickinson Apr 12, 2022 https://github.com/python/cpython/pull/30277/commits/5d8d8ef908710372d123c4565bbd62671463d682
c5e3f81 Merge remote-tracking branch 'upstream/main' into faster-rshift-of-ne… mdickinson Apr 12, 2022 https://github.com/python/cpython/pull/30277/commits/c5e3f816216e538977b833054bf65210e2242b2f
82c5ccd One more assert mdickinson Apr 12, 2022 https://github.com/python/cpython/pull/30277/commits/82c5ccdb7035a28aadb969a2f2958dc2b8469a95
Clear filters https://github.com/python/cpython/pull/30277/files
Please reload this pagehttps://github.com/python/cpython/pull/30277/files
Please reload this pagehttps://github.com/python/cpython/pull/30277/files
test_long.py https://github.com/python/cpython/pull/30277/files#diff-02037b51ab56d36386bd847e681b34c3d6603b5ec033cfea65fc92357697a478
2022-04-12-09-40-57.gh-issue-46055.IPb1HA.rst https://github.com/python/cpython/pull/30277/files#diff-350534e6b61ddbbca0ea00a39067e5d34f3d0a1ce36072e3531a09d40a9e7d4b
longobject.c https://github.com/python/cpython/pull/30277/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
Lib/test/test_long.pyhttps://github.com/python/cpython/pull/30277/files#diff-02037b51ab56d36386bd847e681b34c3d6603b5ec033cfea65fc92357697a478
View file https://github.com/mdickinson/cpython/blob/82c5ccdb7035a28aadb969a2f2958dc2b8469a95/Lib/test/test_long.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/30277/{{ revealButtonHref }}
https://github.com/python/cpython/pull/30277/files#diff-02037b51ab56d36386bd847e681b34c3d6603b5ec033cfea65fc92357697a478
https://github.com/python/cpython/pull/30277/files#diff-02037b51ab56d36386bd847e681b34c3d6603b5ec033cfea65fc92357697a478
Misc/NEWS.d/next/Core and Builtins/2022-04-12-09-40-57.gh-issue-46055.IPb1HA.rsthttps://github.com/python/cpython/pull/30277/files#diff-350534e6b61ddbbca0ea00a39067e5d34f3d0a1ce36072e3531a09d40a9e7d4b
View file https://github.com/mdickinson/cpython/blob/82c5ccdb7035a28aadb969a2f2958dc2b8469a95/Misc/NEWS.d/next/Core%20and%20Builtins/2022-04-12-09-40-57.gh-issue-46055.IPb1HA.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/30277/{{ revealButtonHref }}
Objects/longobject.chttps://github.com/python/cpython/pull/30277/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
View file https://github.com/mdickinson/cpython/blob/82c5ccdb7035a28aadb969a2f2958dc2b8469a95/Objects/longobject.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/30277/{{ revealButtonHref }}
https://github.com/python/cpython/pull/30277/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
https://github.com/python/cpython/pull/30277/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
Please reload this pagehttps://github.com/python/cpython/pull/30277/files
https://github.com/python/cpython/pull/30277/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
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.