René's URL Explorer Experiment


Title: bpo-44376 - reduce pow() overhead for small exponents by tim-one · Pull Request #26662 · python/cpython · GitHub

Open Graph Title: bpo-44376 - reduce pow() overhead for small exponents by tim-one · Pull Request #26662 · python/cpython

X Title: bpo-44376 - reduce pow() overhead for small exponents by tim-one · Pull Request #26662 · python/cpython

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

Open Graph Description: BPO-44376 Reduce pow() overhead for small exponents. Incidentally fixed a refcount oversight for negative exponents. https://bugs.python.org/issue44376

X Description: BPO-44376 Reduce pow() overhead for small exponents. Incidentally fixed a refcount oversight for negative exponents. https://bugs.python.org/issue44376

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

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:1a5d5e64-9467-f92d-dd36-42d0ba41eff6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDDB8:22EB28:13580B0:19A63FD:6A5AA7BC
html-safe-nonce6d7f44639e45bb81525ad172cd2011969415a900d14173c8805853c4d1d3c3f0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREI4OjIyRUIyODoxMzU4MEIwOjE5QTYzRkQ6NkE1QUE3QkMiLCJ2aXNpdG9yX2lkIjoiNjcxOTc1MTMwODc3MjU1MDU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7867076c4d710584b6348589d3a070428bb11cd5292dd5d1b53977f1c7d8cce3
hovercard-subject-tagpull_request:667606080
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/26662/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5c535000fe715dd06f663a280892a9259fb4e4bb2012e208a550da730f50217d/python/cpython/pull/26662
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5c535000fe715dd06f663a280892a9259fb4e4bb2012e208a550da730f50217d/python/cpython/pull/26662
og:image:altBPO-44376 Reduce pow() overhead for small exponents. Incidentally fixed a refcount oversight for negative exponents. https://bugs.python.org/issue44376
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametim-one
hostnamegithub.com
expected-hostnamegithub.com
None17a57ee6ab03686731c491fccb57e6a97c066a29d7cdf1a7d83c46f5c56684fc
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
release5cb870aa6b86b87be75e23ca7caec54726a25af9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/26662#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F26662
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%2F26662
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/26662
Reloadhttps://github.com/python/cpython/pull/26662
Reloadhttps://github.com/python/cpython/pull/26662
Please reload this pagehttps://github.com/python/cpython/pull/26662
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/26662
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.9k 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
tim-onehttps://github.com/tim-one
python:mainhttps://github.com/python/cpython/tree/main
tim-one:powdighttps://github.com/tim-one/cpython/tree/powdig
Conversationhttps://github.com/python/cpython/pull/26662
Commits10 (10)https://github.com/python/cpython/pull/26662/commits
Checkshttps://github.com/python/cpython/pull/26662/checks
Files changedhttps://github.com/python/cpython/pull/26662/files
bpo-44376 - reduce pow() overhead for small exponentshttps://github.com/python/cpython/pull/26662#top
tim-onehttps://github.com/tim-one
python:mainhttps://github.com/python/cpython/tree/main
tim-one:powdighttps://github.com/tim-one/cpython/tree/powdig
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Jun 11, 2021https://github.com/python/cpython/pull/26662#issue-918144540
Please reload this pagehttps://github.com/python/cpython/pull/26662
BPO-44376https://bugs.python.org/issue?@action=redirect&bpo=44376
https://bugs.python.org/issue44376https://bugs.python.org/issue44376
Please reload this pagehttps://github.com/python/cpython/pull/26662
https://github.com/tim-one
First stab.https://github.com/python/cpython/pull/26662/commits/9a2d5590dbc3f51fdbb6abaaab56e2cdb7262c52
9a2d559https://github.com/python/cpython/pull/26662/commits/9a2d5590dbc3f51fdbb6abaaab56e2cdb7262c52
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
Jun 11, 2021https://github.com/python/cpython/pull/26662#event-4875294620
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
Jun 11, 2021https://github.com/python/cpython/pull/26662#event-4875294624
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Jun 11, 2021https://github.com/python/cpython/pull/26662#event-4875298509
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Jun 11, 2021https://github.com/python/cpython/pull/26662#event-4875302934
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Jun 11, 2021https://github.com/python/cpython/pull/26662#event-4875304486
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Jun 11, 2021https://github.com/python/cpython/pull/26662#event-4875316110
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Jun 11, 2021https://github.com/python/cpython/pull/26662#event-4875316717
https://github.com/JelleZijlstra
JelleZijlstrahttps://github.com/JelleZijlstra
Jun 11, 2021https://github.com/python/cpython/pull/26662#issuecomment-859236090
Please reload this pagehttps://github.com/python/cpython/pull/26662
@tim-onehttps://github.com/tim-one
bpo-44376https://bugs.python.org/issue44376
Please reload this pagehttps://github.com/python/cpython/pull/26662
https://github.com/tim-one
Repair that, e.g, pow(False, 1) returned False instead of 0.https://github.com/python/cpython/pull/26662/commits/ff6e798d741f531f10cda5dea4ff56380bf44c76
ff6e798https://github.com/python/cpython/pull/26662/commits/ff6e798d741f531f10cda5dea4ff56380bf44c76
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Jun 11, 2021https://github.com/python/cpython/pull/26662#event-4875440033
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Jun 11, 2021https://github.com/python/cpython/pull/26662#issuecomment-859239554
Please reload this pagehttps://github.com/python/cpython/pull/26662
bpo-44376https://bugs.python.org/issue44376
Please reload this pagehttps://github.com/python/cpython/pull/26662
https://github.com/tim-one
Fixed typo in comment.https://github.com/python/cpython/pull/26662/commits/7f867fa078862e6de62c132dcac0e0efaf7f4dc8
7f867fahttps://github.com/python/cpython/pull/26662/commits/7f867fa078862e6de62c132dcac0e0efaf7f4dc8
https://github.com/mdickinson
mdickinsonhttps://github.com/mdickinson
Jun 11, 2021 https://github.com/python/cpython/pull/26662#pullrequestreview-681722840
View reviewed changes https://github.com/python/cpython/pull/26662/files/7f867fa078862e6de62c132dcac0e0efaf7f4dc8
Objects/longobject.chttps://github.com/python/cpython/pull/26662/files/7f867fa078862e6de62c132dcac0e0efaf7f4dc8#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a
Please reload this pagehttps://github.com/python/cpython/pull/26662
tim-onehttps://github.com/tim-one
June 11, 2021 11:22https://github.com/python/cpython/pull/26662#commits-pushed-e8c4034
https://github.com/tim-one
Search for the most significant exponent bit right-to-lefthttps://github.com/python/cpython/pull/26662/commits/e8c403485926e192bb4021d0ddf586e4ba0fc4fb
e8c4034https://github.com/python/cpython/pull/26662/commits/e8c403485926e192bb4021d0ddf586e4ba0fc4fb
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/26662/commits/a3ace88e5019dd4d56449fa971b505eef636f61a
a3ace88https://github.com/python/cpython/pull/26662/commits/a3ace88e5019dd4d56449fa971b505eef636f61a
https://github.com/tim-one
Merge remote-tracking branch 'upstream/main' into powdighttps://github.com/python/cpython/pull/26662/commits/735a887f2267e34c7b5a86c1f4d5b4cc166dc852
735a887https://github.com/python/cpython/pull/26662/commits/735a887f2267e34c7b5a86c1f4d5b4cc166dc852
https://github.com/tim-one
Skip the binary business entirely for exponents <= 3. It can't winhttps://github.com/python/cpython/pull/26662/commits/7587a02540b0d6420625228c3d461bd58be6585a
7587a02https://github.com/python/cpython/pull/26662/commits/7587a02540b0d6420625228c3d461bd58be6585a
https://github.com/tim-one
Make the bitmask variable of type digit. Using a giant signed inthttps://github.com/python/cpython/pull/26662/commits/2386d8833d9bfc6c1ce563b63fb7874c6fd2a4c8
2386d88https://github.com/python/cpython/pull/26662/commits/2386d8833d9bfc6c1ce563b63fb7874c6fd2a4c8
https://github.com/tim-one
tim-onehttps://github.com/tim-one
Jun 12, 2021https://github.com/python/cpython/pull/26662#event-4880570708
https://github.com/mdickinson
mdickinsonhttps://github.com/mdickinson
Jun 12, 2021 https://github.com/python/cpython/pull/26662#ref-pullrequest-919490496
bpo-36027: Fix a potential refcount bug in long_pow #26690 https://github.com/python/cpython/pull/26690
https://github.com/mdickinson
mdickinsonhttps://github.com/mdickinson
Jun 12, 2021 https://github.com/python/cpython/pull/26662#pullrequestreview-682314179
View reviewed changes https://github.com/python/cpython/pull/26662/files/2386d8833d9bfc6c1ce563b63fb7874c6fd2a4c8
mdickinsonhttps://github.com/mdickinson
https://github.com/python/cpython/pull/26662#pullrequestreview-682314179
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/26662
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
Jun 12, 2021https://github.com/python/cpython/pull/26662#event-4881094422
tim-onehttps://github.com/tim-one
June 12, 2021 10:49https://github.com/python/cpython/pull/26662#commits-pushed-c424322
https://github.com/tim-one
And one more stab to reduce overhead for exponents <= 3.https://github.com/python/cpython/pull/26662/commits/c424322bf997d21a0a992623bdfa44f54985ec0c
c424322https://github.com/python/cpython/pull/26662/commits/c424322bf997d21a0a992623bdfa44f54985ec0c
https://github.com/tim-one
Repaired typo in comment.https://github.com/python/cpython/pull/26662/commits/e3cd20a1a3cbca8dc259c3a6953fe3b8f386c122
e3cd20ahttps://github.com/python/cpython/pull/26662/commits/e3cd20a1a3cbca8dc259c3a6953fe3b8f386c122
https://github.com/tim-one
tim-onehttps://github.com/tim-one
9d8dd8fhttps://github.com/python/cpython/commit/9d8dd8f08aae4ad6e73a9322a4e9dee965afebbc
Jun 12, 2021https://github.com/python/cpython/pull/26662#event-4881444290
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
Jun 12, 2021https://github.com/python/cpython/pull/26662#event-4881444324
https://github.com/tim-one
tim-onehttps://github.com/tim-one
June 12, 2021 16:30https://github.com/python/cpython/pull/26662#event-4881444430
jdevries3133https://github.com/jdevries3133
Jun 19, 2021 https://github.com/python/cpython/pull/26662#ref-commit-feca673
https://github.com/tim-one
https://github.com/jdevries3133
bpo-44376 - reduce pow() overhead for small exponents (https://github.com/jdevries3133/cpython/commit/feca673f1c3ae29dbf0822ffa1cf2c421d501b2b
pythonGH-26662https://github.com/python/cpython/pull/26662
)https://github.com/jdevries3133/cpython/commit/feca673f1c3ae29dbf0822ffa1cf2c421d501b2b
feca673https://github.com/jdevries3133/cpython/commit/feca673f1c3ae29dbf0822ffa1cf2c421d501b2b
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%2F26662
https://github.com/mdickinson
mdickinson https://github.com/mdickinson
https://github.com/python/cpython/pull/26662/files/2386d8833d9bfc6c1ce563b63fb7874c6fd2a4c8
https://github.com/tim-one
tim-one https://github.com/tim-one
Please reload this pagehttps://github.com/python/cpython/pull/26662
https://github.com/tim-one
https://github.com/JelleZijlstra
https://github.com/mdickinson
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
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.