Title: GH-100425: Timing experiment: For builtin_sum, try replacing Fast2Sum with 2Sum by rhettinger · Pull Request #100860 · python/cpython · GitHub
Open Graph Title: GH-100425: Timing experiment: For builtin_sum, try replacing Fast2Sum with 2Sum by rhettinger · Pull Request #100860 · python/cpython
X Title: GH-100425: Timing experiment: For builtin_sum, try replacing Fast2Sum with 2Sum by rhettinger · Pull Request #100860 · python/cpython
Description: On the Apple M1 Max, this change makes no difference. I get 303/304 nsec per loop before and after the edit. Would anyone care to run this on their builds and report back the results? % ./python.exe -m timeit -r21 -s 'n=100' -s 'from random import expovariate as r' -s 'v1=[r(1000) + r(0.125) for i in range(n)]' 'sum(v1)' 1000000 loops, best of 21: 304 nsec per loop Issue: gh-100425
Open Graph Description: On the Apple M1 Max, this change makes no difference. I get 303/304 nsec per loop before and after the edit. Would anyone care to run this on their builds and report back the results? % ./python.e...
X Description: On the Apple M1 Max, this change makes no difference. I get 303/304 nsec per loop before and after the edit. Would anyone care to run this on their builds and report back the results? % ./python.e...
Opengraph URL: https://github.com/python/cpython/pull/100860
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:97108e97-33d3-e04f-7db4-e074d0ced5dd |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 90AE:37EC12:AFF79:ECA5D:6969B5D0 |
| html-safe-nonce | 79450caca2f90d98b6a8fdafe29c2cfec8ed7927e60f7e4ae373266411bd64f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEFFOjM3RUMxMjpBRkY3OTpFQ0E1RDo2OTY5QjVEMCIsInZpc2l0b3JfaWQiOiI4OTA1MjA0OTU0NDM5NDY0NDAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ff7ecc14cb1e7449fad76579ec953a36bbb8403b930af8223b3fb643da13a1b7 |
| hovercard-subject-tag | pull_request:1189978201 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/python/cpython/pull/100860/checks |
| twitter:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| og:image:alt | On the Apple M1 Max, this change makes no difference. I get 303/304 nsec per loop before and after the edit. Would anyone care to run this on their builds and report back the results? % ./python.e... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b23b8fcc855cd29bb04d6c94aafa62d336bf44eefa8229444eecc968cad03aee |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0672399d88424758731ec07fe24509e23bb17fb5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width