Title: bpo-37207: Use PEP 590 vectorcall to speed up tuple() by corona10 · Pull Request #18936 · python/cpython · GitHub
Open Graph Title: bpo-37207: Use PEP 590 vectorcall to speed up tuple() by corona10 · Pull Request #18936 · python/cpython
X Title: bpo-37207: Use PEP 590 vectorcall to speed up tuple() by corona10 · Pull Request #18936 · python/cpython
Description: Master ./python.exe -m pyperf timeit "tuple()" ..................... Mean +- std dev: 262 ns +- 9 ns ./python.exe -m pyperf timeit "tuple((1, 2, 3, 4, 5))" ..................... Mean +- std dev: 361 ns +- 15 ns ./python.exe -m pyperf timeit "tuple([1, 2, 3, 4, 5])" ..................... Mean +- std dev: 927 ns +- 29 ns PEP-590 ./python.exe -m pyperf timeit "tuple()" ..................... Mean +- std dev: 176 ns +- 11 ns ./python.exe -m pyperf timeit "tuple((1, 2, 3, 4, 5))" ..................... Mean +- std dev: 203 ns +- 13 ns ./python.exe -m pyperf timeit "tuple([1, 2, 3, 4, 5])" ..................... Mean +- std dev: 714 ns +- 35 ns https://bugs.python.org/issue37207
Open Graph Description: Master ./python.exe -m pyperf timeit "tuple()" ..................... Mean +- std dev: 262 ns +- 9 ns ./python.exe -m pyperf timeit "tuple((1, 2, 3, 4, 5))" .......................
X Description: Master ./python.exe -m pyperf timeit "tuple()" ..................... Mean +- std dev: 262 ns +- 9 ns ./python.exe -m pyperf timeit "tuple((1, 2, 3, 4, 5))" .......
Opengraph URL: https://github.com/python/cpython/pull/18936
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1dc7f1dd-e3f6-22cc-6f5e-461f3dbc7107 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BAC8:A6E9E:2AFAEA8:3A3554A:6A548C0B |
| html-safe-nonce | 57c9f388f55d45838761cafa6c3db38ffd6023458e577a5b03637cc5e0142454 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUM4OkE2RTlFOjJBRkFFQTg6M0EzNTU0QTo2QTU0OEMwQiIsInZpc2l0b3JfaWQiOiI3OTM2ODQ0OTMyMjM2Mjc3ODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 39bf4c373bd562afc5f0b13c93a38a4553d0d7efd45ce6d90809651992a6f1dc |
| hovercard-subject-tag | pull_request:386831513 |
| 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/18936/files |
| twitter:image | https://avatars.githubusercontent.com/u/5110323?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/5110323?s=400&v=4 |
| og:image:alt | Master ./python.exe -m pyperf timeit "tuple()" ..................... Mean +- std dev: 262 ns +- 9 ns ./python.exe -m pyperf timeit "tuple((1, 2, 3, 4, 5))" ....................... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 03ccb116376fd46e8ba2a4cdc541e35f13f70734 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width