| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:8d857a46-337c-a5ca-c17e-3ea21016c401 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DD04:1B7E6F:108B74A:16D6FF3:696A8B81 |
| html-safe-nonce | fc29e39c55591eeab509f8d84fec98d82e80255f5445a42054883801909c80d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDA0OjFCN0U2RjoxMDhCNzRBOjE2RDZGRjM6Njk2QThCODEiLCJ2aXNpdG9yX2lkIjoiNzM1NzAyNjI2ODIzNTg2MDg2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 79d6fe4d47285a7e1a8e3bfe52f69208cdc0151c567c37d7163306f04fd9f7da |
| hovercard-subject-tag | pull_request:715885656 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/27832/files |
| twitter:image | https://avatars.githubusercontent.com/u/9448417?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9448417?s=400&v=4 |
| og:image:alt | Modest speedup of 1%
The speedup is unexciting, although every little helps.
However, this will help with specialization of integer operations, as that will remove additional overhead.
The obvious ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c1dbca8981c5e3d6a69bce2f1d289e732b86241d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/27832/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F27832%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| 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 |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| 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/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%2F27832%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 |
| Reload | https://github.com/python/cpython/pull/27832/files |
| Reload | https://github.com/python/cpython/pull/27832/files |
| Reload | https://github.com/python/cpython/pull/27832/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/27832/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 page | https://github.com/python/cpython/pull/27832/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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| markshannon | https://github.com/markshannon |
| python:main | https://github.com/python/cpython/tree/main |
| faster-cpython:streamline-medium-ints | https://github.com/faster-cpython/cpython/tree/streamline-medium-ints |
|
Conversation
43
| https://github.com/python/cpython/pull/27832 |
|
Commits
17
| https://github.com/python/cpython/pull/27832/commits |
|
Checks
0
| https://github.com/python/cpython/pull/27832/checks |
|
Files changed
| https://github.com/python/cpython/pull/27832/files |
| Please reload this page | https://github.com/python/cpython/pull/27832/files |
|
bpo-44946: Streamline operators and creation of ints for common case of single 'digit'.
| https://github.com/python/cpython/pull/27832/files#top |
|
Show all changes
17 commits
| https://github.com/python/cpython/pull/27832/files |
|
da57f0b
Streamline binary operations and creating new int objects for common …
markshannon Aug 18, 2021
| https://github.com/python/cpython/pull/27832/commits/da57f0b369f62a07715c5f7e00684768794a273b |
|
0533a9f
Make sure that all ints, even internal, temporary ones, have at least…
markshannon Aug 19, 2021
| https://github.com/python/cpython/pull/27832/commits/0533a9f891f0c54616eef369239cd6554972816f |
|
9349daa
Readability improvements as suggested by Victor Stinner.
markshannon Aug 19, 2021
| https://github.com/python/cpython/pull/27832/commits/9349daa9b9d763a2d3114f7d4ae30254033716d6 |
|
96496e2
Prefix private function name with _
markshannon Aug 19, 2021
| https://github.com/python/cpython/pull/27832/commits/96496e256d87dba6e4554642e445885fd4799af0 |
|
5e4aad5
Reduce the number of casts.
markshannon Aug 19, 2021
| https://github.com/python/cpython/pull/27832/commits/5e4aad51ed94127100029d032d866445e0057037 |
|
59ba476
Avoid casting away top bits.
markshannon Aug 19, 2021
| https://github.com/python/cpython/pull/27832/commits/59ba47614f136ab0a68660ecd33a3a62c38c44d6 |
|
0d3ca1d
Streamline integer negation and invert a bit. Suggested by Mark Dicki…
markshannon Aug 20, 2021
| https://github.com/python/cpython/pull/27832/commits/0d3ca1d8e7dc06ff0c273861b1b97ef2bd604bd5 |
|
c73333b
Clarify comment and internal function name. Remove a bit of redundant…
markshannon Aug 20, 2021
| https://github.com/python/cpython/pull/27832/commits/c73333ba8d916cb7c2afeb573384fda62f18a53e |
|
16d3167
Remove two more narrowing casts.
markshannon Aug 20, 2021
| https://github.com/python/cpython/pull/27832/commits/16d316702da83125e8a68a92f532ac4686b541a8 |
|
f20a2a8
Change _PyLong_FromLarge to use correctly sized int.
markshannon Aug 20, 2021
| https://github.com/python/cpython/pull/27832/commits/f20a2a803231530845344851f2f0df7c3dc14e9c |
|
ab2b908
Avoid more narrowings.
markshannon Aug 20, 2021
| https://github.com/python/cpython/pull/27832/commits/ab2b908b57654162a07b9876aa361664a6642f12 |
|
e43060a
Revert get_small_int to taking a sdigit. Place narrowing casts in cor…
markshannon Aug 20, 2021
| https://github.com/python/cpython/pull/27832/commits/e43060a0ebfd0f5415470fd8bf05d0569fa509db |
|
ed2a430
Use _PyLong_FromSTwoDigits not PyLong_FromLong in long_add.
markshannon Aug 20, 2021
| https://github.com/python/cpython/pull/27832/commits/ed2a4303ddcf4d92adcfc95f2d199b76b5b6179d |
|
1f2d47c
Implement PyLong_FromLong separately from _PyLong_FromSTwoDigits to a…
markshannon Aug 23, 2021
| https://github.com/python/cpython/pull/27832/commits/1f2d47c5b2d9c5c300d16443d33f58af75873db6 |
|
649c311
Don't overflow shift in PyLong_FromLong.
markshannon Aug 23, 2021
| https://github.com/python/cpython/pull/27832/commits/649c31180fbf72416cfe3d063ca592769e2cf049 |
|
a69f420
Convert IS_MEDIUM_INT macro to inline function.
markshannon Aug 25, 2021
| https://github.com/python/cpython/pull/27832/commits/a69f420e9f81e21cdcda5d57fa8d11e70139f680 |
|
47571ff
Edit comment
markshannon Aug 25, 2021
| https://github.com/python/cpython/pull/27832/commits/47571ffaeee4f9758876bb0de9e1e8ee594a36c7 |
|
Clear filters
| https://github.com/python/cpython/pull/27832/files |
| Please reload this page | https://github.com/python/cpython/pull/27832/files |
| Please reload this page | https://github.com/python/cpython/pull/27832/files |
| Objects/longobject.c | https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
View file
| https://github.com/faster-cpython/cpython/blob/47571ffaeee4f9758876bb0de9e1e8ee594a36c7/Objects/longobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/27832/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
| Please reload this page | https://github.com/python/cpython/pull/27832/files |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
| Please reload this page | https://github.com/python/cpython/pull/27832/files |
| Please reload this page | https://github.com/python/cpython/pull/27832/files |
| mdickinson | https://github.com/mdickinson |
| Jan 7, 2022 | https://github.com/python/cpython/pull/27832/files#r780334621 |
| Please reload this page | https://github.com/python/cpython/pull/27832/files |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/27832/files |
| mdickinson | https://github.com/mdickinson |
| Jan 9, 2022 | https://github.com/python/cpython/pull/27832/files#r780766982 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #30496 | https://github.com/python/cpython/pull/30496 |
| Please reload this page | https://github.com/python/cpython/pull/27832/files |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/27832/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| 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 |