Title: Simplify and speed-up math.hypot() and math.dist() by rhettinger · Pull Request #102734 · python/cpython · GitHub
Open Graph Title: Simplify and speed-up math.hypot() and math.dist() by rhettinger · Pull Request #102734 · python/cpython
X Title: Simplify and speed-up math.hypot() and math.dist() by rhettinger · Pull Request #102734 · python/cpython
Description: Apply the sumprod() DoubleLength functions to vector_norm() which is called by both hypot() and dist(). Baseline timing % ./python.exe -m timeit -r11 -s 'from random import expovariate as r' -s 'fr...
Open Graph Description: Apply the sumprod() DoubleLength functions to vector_norm() which is called by both hypot() and dist(). Baseline timing % ./python.exe -m timeit -r11 -s 'from random import expovariate as r'...
X Description: Apply the sumprod() DoubleLength functions to vector_norm() which is called by both hypot() and dist(). Baseline timing % ./python.exe -m timeit -r11 -s 'from random import expovariate as r...
Opengraph URL: https://github.com/python/cpython/pull/102734
X: @github
Domain: github.com
| 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:54db24d2-d33b-6c7d-4948-c80a4e2f1f7b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CD38:10503:2EADE5D:3CFCB8A:696B7B43 |
| html-safe-nonce | 0b935f72ed85d333d167cbca84cb35c40605e3c29a6c76823c6af400ed63eb9f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDM4OjEwNTAzOjJFQURFNUQ6M0NGQ0I4QTo2OTZCN0I0MyIsInZpc2l0b3JfaWQiOiI3NjczNzEwMzI1OTgyMjY0MTMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a14323b59f094e68d528f34fa199501dff834fd0009a70118851f4d6eb83b10d |
| hovercard-subject-tag | pull_request:1277176983 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/102734/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/2d13a8104fba410394a8443424d7d33c30c0633ae8325fadcb426da32855c0f1/python/cpython/pull/102734 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d13a8104fba410394a8443424d7d33c30c0633ae8325fadcb426da32855c0f1/python/cpython/pull/102734 |
| og:image:alt | Apply the sumprod() DoubleLength functions to vector_norm() which is called by both hypot() and dist(). Baseline timing % ./python.exe -m timeit -r11 -s 'from random import expovariate as r'... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rhettinger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width