Title: bpo-42927: Inline cache for slots by gvanrossum · Pull Request #24216 · python/cpython · GitHub
Open Graph Title: bpo-42927: Inline cache for slots by gvanrossum · Pull Request #24216 · python/cpython
X Title: bpo-42927: Inline cache for slots by gvanrossum · Pull Request #24216 · python/cpython
Description: This is a modification of the LOAD_ATTR inline cache that landed a few months ago (PR 22803). The design overloads the hint field: if it is negative, it indicates a slot. Slots are created using __slots__, but some builtin types that use PyMemberDescrObject descriptors (with the type set to T_OBJECT_EX) will also benefit. I've tried to keep the code style similar to the existing LOAD_ATTR cache (happy path first) but I had to make some compromises, e.g. the cache initialization code can no longer skip everything if tp_dictoffset is zero (since it will be zero for classes with only slots). https://bugs.python.org/issue42927
Open Graph Description: This is a modification of the LOAD_ATTR inline cache that landed a few months ago (PR 22803). The design overloads the hint field: if it is negative, it indicates a slot. Slots are created using __...
X Description: This is a modification of the LOAD_ATTR inline cache that landed a few months ago (PR 22803). The design overloads the hint field: if it is negative, it indicates a slot. Slots are created using __...
Opengraph URL: https://github.com/python/cpython/pull/24216
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9fdd329a-57e9-e7a3-c44b-1c58c0e3f7af |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8AA2:2A8696:11FC3EB:17DA57C:6A542535 |
| html-safe-nonce | a0e1cf565d1a054c632599fd039522cacf172c7f14bd8a025955a2b595864def |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUEyOjJBODY5NjoxMUZDM0VCOjE3REE1N0M6NkE1NDI1MzUiLCJ2aXNpdG9yX2lkIjoiODI2MzQ1ODI4MTE4NTYxNzIwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aa283843da3c2f5c78b1b0c3b0db4cef5c40dfeefdcd5d7a690b65ef71b5a523 |
| hovercard-subject-tag | pull_request:554642745 |
| 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/24216/files |
| twitter:image | https://avatars.githubusercontent.com/u/2894642?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2894642?s=400&v=4 |
| og:image:alt | This is a modification of the LOAD_ATTR inline cache that landed a few months ago (PR 22803). The design overloads the hint field: if it is negative, it indicates a slot. Slots are created using __... |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width