Title: GH-145667: Merge `GET_ITER` and `GET_YIELD_FROM_ITER` by markshannon · Pull Request #146120 · python/cpython · GitHub
Open Graph Title: GH-145667: Merge `GET_ITER` and `GET_YIELD_FROM_ITER` by markshannon · Pull Request #146120 · python/cpython
X Title: GH-145667: Merge `GET_ITER` and `GET_YIELD_FROM_ITER` by markshannon · Pull Request #146120 · python/cpython
Description: Also modifies SEND to make it a bit more like FOR_ITER as both are now fed by GET_ITER. Apart from saving an opcode, this will enable broadly similar optimizations to be applied to SEND as are already applied to FOR_ITER. Which will be able to: significantly improve the performance of yield from seq where seq is a common iterable, like list. allow the JIT to trace through SEND as it will be mostly specialized. For now, this is broadly performance neutral, between +0% and -1%, mostly about 0%. Issue: gh-145667
Open Graph Description: Also modifies SEND to make it a bit more like FOR_ITER as both are now fed by GET_ITER. Apart from saving an opcode, this will enable broadly similar optimizations to be applied to SEND as are alre...
X Description: Also modifies SEND to make it a bit more like FOR_ITER as both are now fed by GET_ITER. Apart from saving an opcode, this will enable broadly similar optimizations to be applied to SEND as are alre...
Opengraph URL: https://github.com/python/cpython/pull/146120
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:470cca23-da60-2b35-e4a1-e492ee9f7e60 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9610:3A68A9:4AC8D06:68A8D91:6A50EC41 |
| html-safe-nonce | ad80c2507120e169290b2a69e60855dcc2455b80b90bbff9a0f0cdf0e4591eef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjEwOjNBNjhBOTo0QUM4RDA2OjY4QThEOTE6NkE1MEVDNDEiLCJ2aXNpdG9yX2lkIjoiODQ5Njg3NjQ1MjIwOTI5MDMwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 16b1122782eb03e08ab07837bb1d4f12daef22fe9169142b153a700a0295e92c |
| hovercard-subject-tag | pull_request:3415720261 |
| 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/146120/files |
| twitter:image | https://avatars.githubusercontent.com/u/9448417?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9448417?s=400&v=4 |
| og:image:alt | Also modifies SEND to make it a bit more like FOR_ITER as both are now fed by GET_ITER. Apart from saving an opcode, this will enable broadly similar optimizations to be applied to SEND as are alre... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72b13e0e8d0319acdd27a145cfe73f4f06c791713d0ac4690e41fb68ad28cac0 |
| 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 | fb19d617b534959801b4b7453938ecf1dfa22131 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width