| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:1a5d5e64-9467-f92d-dd36-42d0ba41eff6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DDB8:22EB28:13580B0:19A63FD:6A5AA7BC |
| html-safe-nonce | 6d7f44639e45bb81525ad172cd2011969415a900d14173c8805853c4d1d3c3f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREI4OjIyRUIyODoxMzU4MEIwOjE5QTYzRkQ6NkE1QUE3QkMiLCJ2aXNpdG9yX2lkIjoiNjcxOTc1MTMwODc3MjU1MDU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7867076c4d710584b6348589d3a070428bb11cd5292dd5d1b53977f1c7d8cce3 |
| hovercard-subject-tag | pull_request:667606080 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/26662/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/5c535000fe715dd06f663a280892a9259fb4e4bb2012e208a550da730f50217d/python/cpython/pull/26662 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5c535000fe715dd06f663a280892a9259fb4e4bb2012e208a550da730f50217d/python/cpython/pull/26662 |
| og:image:alt | BPO-44376
Reduce pow() overhead for small exponents.
Incidentally fixed a refcount oversight for
negative exponents.
https://bugs.python.org/issue44376 |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tim-one |
| hostname | github.com |
| expected-hostname | github.com |
| None | 17a57ee6ab03686731c491fccb57e6a97c066a29d7cdf1a7d83c46f5c56684fc |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5cb870aa6b86b87be75e23ca7caec54726a25af9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/python/cpython/pull/26662 |
| Reload | https://github.com/python/cpython/pull/26662 |
| Reload | https://github.com/python/cpython/pull/26662 |
| Please reload this page | https://github.com/python/cpython/pull/26662 |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://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-one | https://github.com/tim-one |
| python:main | https://github.com/python/cpython/tree/main |
| tim-one:powdig | https://github.com/tim-one/cpython/tree/powdig |
| Conversation | https://github.com/python/cpython/pull/26662 |
| Commits10 (10) | https://github.com/python/cpython/pull/26662/commits |
| Checks | https://github.com/python/cpython/pull/26662/checks |
| Files changed | https://github.com/python/cpython/pull/26662/files |
| bpo-44376 - reduce pow() overhead for small exponents | https://github.com/python/cpython/pull/26662#top |
| tim-one | https://github.com/tim-one |
| python:main | https://github.com/python/cpython/tree/main |
| tim-one:powdig | https://github.com/tim-one/cpython/tree/powdig |
|
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| Jun 11, 2021 | https://github.com/python/cpython/pull/26662#issue-918144540 |
| Please reload this page | https://github.com/python/cpython/pull/26662 |
| BPO-44376 | https://bugs.python.org/issue?@action=redirect&bpo=44376 |
| https://bugs.python.org/issue44376 | https://bugs.python.org/issue44376 |
| Please reload this page | https://github.com/python/cpython/pull/26662 |
|
| https://github.com/tim-one |
| First stab. | https://github.com/python/cpython/pull/26662/commits/9a2d5590dbc3f51fdbb6abaaab56e2cdb7262c52 |
| 9a2d559 | https://github.com/python/cpython/pull/26662/commits/9a2d5590dbc3f51fdbb6abaaab56e2cdb7262c52 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting core review
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22 |
| Jun 11, 2021 | https://github.com/python/cpython/pull/26662#event-4875294620 |
| https://github.com/the-knights-who-say-ni |
| the-knights-who-say-ni | https://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, 2021 | https://github.com/python/cpython/pull/26662#event-4875294624 |
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| Jun 11, 2021 | https://github.com/python/cpython/pull/26662#event-4875298509 |
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| Jun 11, 2021 | https://github.com/python/cpython/pull/26662#event-4875302934 |
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| Jun 11, 2021 | https://github.com/python/cpython/pull/26662#event-4875304486 |
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| Jun 11, 2021 | https://github.com/python/cpython/pull/26662#event-4875316110 |
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| Jun 11, 2021 | https://github.com/python/cpython/pull/26662#event-4875316717 |
| https://github.com/JelleZijlstra |
| JelleZijlstra | https://github.com/JelleZijlstra |
| Jun 11, 2021 | https://github.com/python/cpython/pull/26662#issuecomment-859236090 |
| Please reload this page | https://github.com/python/cpython/pull/26662 |
| @tim-one | https://github.com/tim-one |
| bpo-44376 | https://bugs.python.org/issue44376 |
| Please reload this page | https://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 |
| ff6e798 | https://github.com/python/cpython/pull/26662/commits/ff6e798d741f531f10cda5dea4ff56380bf44c76 |
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| Jun 11, 2021 | https://github.com/python/cpython/pull/26662#event-4875440033 |
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| Jun 11, 2021 | https://github.com/python/cpython/pull/26662#issuecomment-859239554 |
| Please reload this page | https://github.com/python/cpython/pull/26662 |
| bpo-44376 | https://bugs.python.org/issue44376 |
| Please reload this page | https://github.com/python/cpython/pull/26662 |
|
| https://github.com/tim-one |
| Fixed typo in comment. | https://github.com/python/cpython/pull/26662/commits/7f867fa078862e6de62c132dcac0e0efaf7f4dc8 |
| 7f867fa | https://github.com/python/cpython/pull/26662/commits/7f867fa078862e6de62c132dcac0e0efaf7f4dc8 |
| https://github.com/mdickinson |
| mdickinson | https://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.c | https://github.com/python/cpython/pull/26662/files/7f867fa078862e6de62c132dcac0e0efaf7f4dc8#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
| Please reload this page | https://github.com/python/cpython/pull/26662 |
| tim-one | https://github.com/tim-one |
| June 11, 2021 11:22 | https://github.com/python/cpython/pull/26662#commits-pushed-e8c4034 |
|
| https://github.com/tim-one |
| Search for the most significant exponent bit right-to-left | https://github.com/python/cpython/pull/26662/commits/e8c403485926e192bb4021d0ddf586e4ba0fc4fb |
| e8c4034 | https://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 |
| a3ace88 | https://github.com/python/cpython/pull/26662/commits/a3ace88e5019dd4d56449fa971b505eef636f61a |
|
| https://github.com/tim-one |
| Merge remote-tracking branch 'upstream/main' into powdig | https://github.com/python/cpython/pull/26662/commits/735a887f2267e34c7b5a86c1f4d5b4cc166dc852 |
| 735a887 | https://github.com/python/cpython/pull/26662/commits/735a887f2267e34c7b5a86c1f4d5b4cc166dc852 |
|
| https://github.com/tim-one |
| Skip the binary business entirely for exponents <= 3. It can't win | https://github.com/python/cpython/pull/26662/commits/7587a02540b0d6420625228c3d461bd58be6585a |
| 7587a02 | https://github.com/python/cpython/pull/26662/commits/7587a02540b0d6420625228c3d461bd58be6585a |
|
| https://github.com/tim-one |
| Make the bitmask variable of type digit. Using a giant signed int | https://github.com/python/cpython/pull/26662/commits/2386d8833d9bfc6c1ce563b63fb7874c6fd2a4c8 |
| 2386d88 | https://github.com/python/cpython/pull/26662/commits/2386d8833d9bfc6c1ce563b63fb7874c6fd2a4c8 |
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| Jun 12, 2021 | https://github.com/python/cpython/pull/26662#event-4880570708 |
| https://github.com/mdickinson |
| mdickinson | https://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 |
| mdickinson | https://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 |
| mdickinson | https://github.com/mdickinson |
| https://github.com/python/cpython/pull/26662#pullrequestreview-682314179 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/26662 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://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, 2021 | https://github.com/python/cpython/pull/26662#event-4881094422 |
| tim-one | https://github.com/tim-one |
| June 12, 2021 10:49 | https://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 |
| c424322 | https://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 |
| e3cd20a | https://github.com/python/cpython/pull/26662/commits/e3cd20a1a3cbca8dc259c3a6953fe3b8f386c122 |
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| 9d8dd8f | https://github.com/python/cpython/commit/9d8dd8f08aae4ad6e73a9322a4e9dee965afebbc |
| Jun 12, 2021 | https://github.com/python/cpython/pull/26662#event-4881444290 |
| https://github.com/bedevere-bot |
| bedevere-bot | https://github.com/bedevere-bot |
|
awaiting merge
| https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22 |
| Jun 12, 2021 | https://github.com/python/cpython/pull/26662#event-4881444324 |
| https://github.com/tim-one |
| tim-one | https://github.com/tim-one |
| June 12, 2021 16:30 | https://github.com/python/cpython/pull/26662#event-4881444430 |
| jdevries3133 | https://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-26662 | https://github.com/python/cpython/pull/26662 |
| ) | https://github.com/jdevries3133/cpython/commit/feca673f1c3ae29dbf0822ffa1cf2c421d501b2b |
| feca673 | https://github.com/jdevries3133/cpython/commit/feca673f1c3ae29dbf0822ffa1cf2c421d501b2b |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://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 page | https://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 |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |