Title: Optimise math.ceil for known exact float · hauntsaninja/cpython@3166603 · GitHub
Open Graph Title: Optimise math.ceil for known exact float · hauntsaninja/cpython@3166603
X Title: Optimise math.ceil for known exact float · hauntsaninja/cpython@3166603
Description: The Python programming language. Contribute to hauntsaninja/cpython development by creating an account on GitHub.
Open Graph Description: This matches a similar optimisation done for math.floor in https://github.com/python/cpython/pull/21072 Before: ``` λ ./python.exe -m timeit -r 11 -s 'from math import ceil' -s 'x=3.14...
X Description: This matches a similar optimisation done for math.floor in https://github.com/python/cpython/pull/21072 Before: ``` λ ./python.exe -m timeit -r 11 -s 'from math import ceil' -s &am...
Opengraph URL: /hauntsaninja/cpython/commit/3166603dfd61ff09d8c47547e1f848206d9742c4
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/commit/:name(/*path) |
| route-controller | commit |
| route-action | show |
| fetch-nonce | v2:12e83cb9-1884-b5cc-43e9-fc8ce5fb2081 |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | DA82:DA371:227DA6:2FC9D9:6996ED53 |
| html-safe-nonce | d84a1abbe7159bd95fda8e90dfa86e41d6e982c236cbc24192df4eb650732db0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTgyOkRBMzcxOjIyN0RBNjoyRkM5RDk6Njk5NkVENTMiLCJ2aXNpdG9yX2lkIjoiMjM2NjkwMTEzMjQxMjE0MjkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5d15b54e5fe88f91c0b5c80b9f4741755631a0793a59887a4892404566a11b82 |
| hovercard-subject-tag | repository:235942222 |
| github-keyboard-shortcuts | repository,commits,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/hauntsaninja/cpython/commit/3166603dfd61ff09d8c47547e1f848206d9742c4 |
| twitter:image | https://opengraph.githubassets.com/0f5963cb8f5c768724438bf026440546b2579d24e1d6b72e0820055bcc3c5214/hauntsaninja/cpython/commit/3166603dfd61ff09d8c47547e1f848206d9742c4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0f5963cb8f5c768724438bf026440546b2579d24e1d6b72e0820055bcc3c5214/hauntsaninja/cpython/commit/3166603dfd61ff09d8c47547e1f848206d9742c4 |
| og:image:alt | This matches a similar optimisation done for math.floor in https://github.com/python/cpython/pull/21072 Before: ``` λ ./python.exe -m timeit -r 11 -s 'from math import ceil' -s 'x=3.14... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:updated_time | 1693632912 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5513290f8d09a9ed78de519ab8316ed23b2b0ddd5e91d2420df56691d00827e8 |
| turbo-cache-control | no-cache |
| go-import | github.com/hauntsaninja/cpython git https://github.com/hauntsaninja/cpython.git |
| octolytics-dimension-user_id | 12621235 |
| octolytics-dimension-user_login | hauntsaninja |
| octolytics-dimension-repository_id | 235942222 |
| octolytics-dimension-repository_nwo | hauntsaninja/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 81598961 |
| octolytics-dimension-repository_parent_nwo | python/cpython |
| 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 | 76dcd6bfbb17f4e407097d5743e96cb8ebdafd9c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width