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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d84a8001-3ce4-1a55-eee0-aa50e5d7b812 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 93B2:22DB0A:27DA314:376D63D:69694D3D |
| html-safe-nonce | 6511df94f08f2409bdd8d4ae82967908a10f11af5e5acd46ddbddda2153a48ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0IyOjIyREIwQToyN0RBMzE0OjM3NkQ2M0Q6Njk2OTREM0QiLCJ2aXNpdG9yX2lkIjoiNjI2NTgzODE0OTY0MDQ3MzkxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ebc1c2f8bcda69f466ebb0c9188521ae313c9c0de2b25152b61d5477a1ab33d8 |
| hovercard-subject-tag | pull_request:1189978201 |
| 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/python/cpython/pull/100860/files |
| 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 | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width