René's URL Explorer Experiment


Title: gh-110489: Optimise math.ceil for known exact float by hauntsaninja · Pull Request #108801 · python/cpython · GitHub

Open Graph Title: gh-110489: Optimise math.ceil for known exact float by hauntsaninja · Pull Request #108801 · python/cpython

X Title: gh-110489: Optimise math.ceil for known exact float by hauntsaninja · Pull Request #108801 · python/cpython

Description: This matches a similar optimisation done by rhettinger for math.floor in #21072 Before: λ ./python.exe -m timeit -r 11 -s 'from math import ceil' -s 'x=3.14' 'ceil(x)' 20000000 loops, best of 11: 1...

Open Graph Description: This matches a similar optimisation done by rhettinger for math.floor in #21072 Before: λ ./python.exe -m timeit -r 11 -s 'from math import ceil' -s 'x=3.14' 'ceil(x)' 20000...

X Description: This matches a similar optimisation done by rhettinger for math.floor in #21072 Before: λ ./python.exe -m timeit -r 11 -s 'from math import ceil' -s 'x=3.14' &#3...

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

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:b48a934c-2296-4c99-cecb-58bb845d19c8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC27C:64491:2729806:3579633:696ACD40
html-safe-nonce0af99e6a1f5bee0f62dad2b948220e9c484a9a1905ff00e040f832230914f761
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjdDOjY0NDkxOjI3Mjk4MDY6MzU3OTYzMzo2OTZBQ0Q0MCIsInZpc2l0b3JfaWQiOiI1MjI1MDQ1MjE0NDk2NDc2NDgwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmace67f7c95c348737a0e8696581349b40c824d13138f24d66363432b734c2403dc
hovercard-subject-tagpull_request:1499694459
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/108801/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9e6150a656c043825366767f2e7f7794a9c3f8b4624fa92beaf1ad918e70bb00/python/cpython/pull/108801
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9e6150a656c043825366767f2e7f7794a9c3f8b4624fa92beaf1ad918e70bb00/python/cpython/pull/108801
og:image:altThis matches a similar optimisation done by rhettinger for math.floor in #21072 Before: λ ./python.exe -m timeit -r 11 -s 'from math import ceil' -s 'x=3.14' 'ceil(x)' 20000...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehauntsaninja
hostnamegithub.com
expected-hostnamegithub.com
Nonec785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d
turbo-cache-controlno-preview
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
releasec718a376fcf780eb22089171adb84a543f660bf7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/108801#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F108801
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%2F108801
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/108801
Reloadhttps://github.com/python/cpython/pull/108801
Reloadhttps://github.com/python/cpython/pull/108801
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/108801
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/108801
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
Jump to bottomhttps://github.com/python/cpython/pull/108801#issue-comment-box
hauntsaninjahttps://github.com/hauntsaninja
python:mainhttps://github.com/python/cpython/tree/main
hauntsaninja:ceil-optimhttps://github.com/hauntsaninja/cpython/tree/ceil-optim
gh-110489: Optimise math.ceil for known exact float https://github.com/python/cpython/pull/108801#top
hauntsaninjahttps://github.com/hauntsaninja
python:mainhttps://github.com/python/cpython/tree/main
hauntsaninja:ceil-optimhttps://github.com/hauntsaninja/cpython/tree/ceil-optim
Conversation 6 https://github.com/python/cpython/pull/108801
Commits 3 https://github.com/python/cpython/pull/108801/commits
Checks 0 https://github.com/python/cpython/pull/108801/checks
Files changed https://github.com/python/cpython/pull/108801/files
Please reload this pagehttps://github.com/python/cpython/pull/108801
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Sep 2, 2023https://github.com/python/cpython/pull/108801#issue-1878362937
Please reload this pagehttps://github.com/python/cpython/pull/108801
#21072https://github.com/python/cpython/pull/21072
Optimise math.ceil for known exact float #110489https://github.com/python/cpython/issues/110489
Please reload this pagehttps://github.com/python/cpython/pull/108801
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
Sep 2, 2023https://github.com/python/cpython/pull/108801#event-10263046244
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Sep 2, 2023 https://github.com/python/cpython/pull/108801#ref-pullrequest-1614759500
gh-102837: few coverage nitpicks for the math module #102523 https://github.com/python/cpython/pull/102523
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
rhettingerhttps://github.com/rhettinger
September 2, 2023 05:39https://github.com/python/cpython/pull/108801#event-10263048929
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
Sep 2, 2023 https://github.com/python/cpython/pull/108801#pullrequestreview-1607928020
View reviewed changes https://github.com/python/cpython/pull/108801/files
Modules/mathmodule.chttps://github.com/python/cpython/pull/108801/files#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
skirpichevhttps://github.com/skirpichev
Sep 2, 2023https://github.com/python/cpython/pull/108801#discussion_r1313734739
Please reload this pagehttps://github.com/python/cpython/pull/108801
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/108801
skirpichevhttps://github.com/skirpichev
Sep 3, 2023https://github.com/python/cpython/pull/108801#discussion_r1314188737
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#102523https://github.com/python/cpython/pull/102523
Please reload this pagehttps://github.com/python/cpython/pull/108801
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
Sep 2, 2023 https://github.com/python/cpython/pull/108801#pullrequestreview-1607941518
View reviewed changes https://github.com/python/cpython/pull/108801/files
Modules/mathmodule.chttps://github.com/python/cpython/pull/108801/files#diff-5b1186dfcc44670529aa53cb728a1c005f58f38324c24787a49f22cec36841c7
skirpichevhttps://github.com/skirpichev
Sep 2, 2023https://github.com/python/cpython/pull/108801#discussion_r1313740824
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/108801
https://github.com/hauntsaninja
Optimise math.ceil for known exact floathttps://github.com/python/cpython/pull/108801/commits/7463f3a409ce838ad2f5080237908c4ba6f88f83
7463f3ahttps://github.com/python/cpython/pull/108801/commits/7463f3a409ce838ad2f5080237908c4ba6f88f83
python#21072https://github.com/python/cpython/pull/21072
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
force-pushedhttps://github.com/python/cpython/compare/3166603dfd61ff09d8c47547e1f848206d9742c4..7463f3a409ce838ad2f5080237908c4ba6f88f83
3166603https://github.com/python/cpython/commit/3166603dfd61ff09d8c47547e1f848206d9742c4
7463f3ahttps://github.com/python/cpython/commit/7463f3a409ce838ad2f5080237908c4ba6f88f83
Compare https://github.com/python/cpython/compare/3166603dfd61ff09d8c47547e1f848206d9742c4..7463f3a409ce838ad2f5080237908c4ba6f88f83
September 3, 2023 08:49https://github.com/python/cpython/pull/108801#event-10265587764
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Oct 6, 2023https://github.com/python/cpython/pull/108801#event-10580192699
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 6, 2023 https://github.com/python/cpython/pull/108801#ref-issue-1931001802
Optimise math.ceil for known exact float #110489 https://github.com/python/cpython/issues/110489
hauntsaninjahttps://github.com/hauntsaninja
October 6, 2023 15:27https://github.com/python/cpython/pull/108801#commits-pushed-5c46412
https://github.com/hauntsaninja
pep 7https://github.com/python/cpython/pull/108801/commits/5c46412e2f18944f035c01ced7656231aa6be6a8
5c46412https://github.com/python/cpython/pull/108801/commits/5c46412e2f18944f035c01ced7656231aa6be6a8
https://github.com/apps/blurb-it
📜🤖 Added by blurb_it.https://github.com/python/cpython/pull/108801/commits/6c28b764a947750b522ee0d25540a19f50abc8da
6c28b76https://github.com/python/cpython/pull/108801/commits/6c28b764a947750b522ee0d25540a19f50abc8da
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
October 6, 2023 22:53https://github.com/python/cpython/pull/108801#event-10580296007
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
Oct 6, 2023https://github.com/python/cpython/pull/108801#issuecomment-1751480958
Please reload this pagehttps://github.com/python/cpython/pull/108801
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
f013b47https://github.com/python/cpython/commit/f013b475047b2e9d377feda9f2e16e5cdef824d7
Oct 6, 2023https://github.com/python/cpython/pull/108801#event-10580308108
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Oct 6, 2023https://github.com/python/cpython/pull/108801#event-10580308260
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Oct 6, 2023https://github.com/python/cpython/pull/108801#issuecomment-1751489349
f013b47https://github.com/python/cpython/commit/f013b475047b2e9d377feda9f2e16e5cdef824d7
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/all/#builders/29/builds/4915https://buildbot.python.org/all/#builders/29/builds/4915
f013b47https://github.com/python/cpython/commit/f013b475047b2e9d377feda9f2e16e5cdef824d7
https://buildbot.python.org/all/#builders/29/builds/4915https://buildbot.python.org/all/#builders/29/builds/4915
Please reload this pagehttps://github.com/python/cpython/pull/108801
https://github.com/hauntsaninja
hauntsaninjahttps://github.com/hauntsaninja
October 6, 2023 23:12https://github.com/python/cpython/pull/108801#event-10580357842
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
Oct 6, 2023https://github.com/python/cpython/pull/108801#issuecomment-1751503382
f013b47https://github.com/python/cpython/commit/f013b475047b2e9d377feda9f2e16e5cdef824d7
the buildbot page in the devguidehttps://devguide.python.org/buildbots/
https://buildbot.python.org/all/#builders/469/builds/6217https://buildbot.python.org/all/#builders/469/builds/6217
f013b47https://github.com/python/cpython/commit/f013b475047b2e9d377feda9f2e16e5cdef824d7
https://buildbot.python.org/all/#builders/469/builds/6217https://buildbot.python.org/all/#builders/469/builds/6217
Please reload this pagehttps://github.com/python/cpython/pull/108801
Glyphackhttps://github.com/Glyphack
Sep 2, 2024 https://github.com/python/cpython/pull/108801#ref-commit-f02d2a7
https://github.com/hauntsaninja
https://github.com/Glyphack
pythongh-110489https://github.com/python/cpython/issues/110489
: Optimise math.ceil for known exact float (https://github.com/Glyphack/cpython/commit/f02d2a76de59bffca98dac5ae718fc01fd02718c
python#108801https://github.com/python/cpython/pull/108801
f02d2a7https://github.com/Glyphack/cpython/commit/f02d2a76de59bffca98dac5ae718fc01fd02718c
https://github.com/python/cpython/pull/108801
python#21072https://github.com/python/cpython/pull/21072
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%2F108801
https://github.com/skirpichev
skirpichev https://github.com/skirpichev
https://github.com/python/cpython/pull/108801/files/7463f3a409ce838ad2f5080237908c4ba6f88f83
https://github.com/rhettinger
rhettinger https://github.com/rhettinger
Please reload this pagehttps://github.com/python/cpython/pull/108801
https://github.com/hauntsaninja
https://github.com/bedevere-bot
https://github.com/skirpichev
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.