René's URL Explorer Experiment


Title: bpo-44946: Streamline operators and creation of ints for common case of single 'digit'. by markshannon · Pull Request #27832 · python/cpython · GitHub

Open Graph Title: bpo-44946: Streamline operators and creation of ints for common case of single 'digit'. by markshannon · Pull Request #27832 · python/cpython

X Title: bpo-44946: Streamline operators and creation of ints for common case of single 'digit'. by markshannon · Pull Request #27832 · python/cpython

Description: 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 other speedup of using a freelist is left for another PR, as we need to rationalize our use of freelists before adding more. Skipping NEWS as there is no change to any APIs and the performance increase is marginal. https://bugs.python.org/issue44946

Open Graph Description: 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 ...

X Description: 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 ...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:8d857a46-337c-a5ca-c17e-3ea21016c401
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDD04:1B7E6F:108B74A:16D6FF3:696A8B81
html-safe-noncefc29e39c55591eeab509f8d84fec98d82e80255f5445a42054883801909c80d7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDA0OjFCN0U2RjoxMDhCNzRBOjE2RDZGRjM6Njk2QThCODEiLCJ2aXNpdG9yX2lkIjoiNzM1NzAyNjI2ODIzNTg2MDg2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac79d6fe4d47285a7e1a8e3bfe52f69208cdc0151c567c37d7163306f04fd9f7da
hovercard-subject-tagpull_request:715885656
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/27832/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:altModest 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_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noned2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825
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
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec1dbca8981c5e3d6a69bce2f1d289e732b86241d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 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%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
Reloadhttps://github.com/python/cpython/pull/27832/files
Reloadhttps://github.com/python/cpython/pull/27832/files
Reloadhttps://github.com/python/cpython/pull/27832/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://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 pagehttps://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 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:streamline-medium-intshttps://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 pagehttps://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 pagehttps://github.com/python/cpython/pull/27832/files
Please reload this pagehttps://github.com/python/cpython/pull/27832/files
Objects/longobject.chttps://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 pagehttps://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 pagehttps://github.com/python/cpython/pull/27832/files
Please reload this pagehttps://github.com/python/cpython/pull/27832/files
mdickinsonhttps://github.com/mdickinson
Jan 7, 2022https://github.com/python/cpython/pull/27832/files#r780334621
Please reload this pagehttps://github.com/python/cpython/pull/27832/files
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/27832/files
mdickinsonhttps://github.com/mdickinson
Jan 9, 2022https://github.com/python/cpython/pull/27832/files#r780766982
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#30496https://github.com/python/cpython/pull/30496
Please reload this pagehttps://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
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.