Title: Better stats for `LOAD_ATTR` and `STORE_ATTR` by markshannon · Pull Request #100295 · python/cpython · GitHub
Open Graph Title: Better stats for `LOAD_ATTR` and `STORE_ATTR` by markshannon · Pull Request #100295 · python/cpython
X Title: Better stats for `LOAD_ATTR` and `STORE_ATTR` by markshannon · Pull Request #100295 · python/cpython
Description: This PR provides better stats for LOAD_ATTR and STORE_ATTR, differentiating several class attributes. There is a slight change to specializing behavior, but it seems to make no difference in practice. The main change is for simple attributes of a class. Consider class C: i = 0 c = C() c.i c.i is not specialized and the failure is reported as "not in dict". i isn't in the instance's dict, but that's not the problem. With this PR, the failure is reported as "class attr simple" which is much more informative. The change in specialization behavior is that if an instance attribute shadows a non-data descriptor, it is no longer specialized. This has no effect on the hit rate, which remains at 82%, but does convert some misses to deferreds.
Open Graph Description: This PR provides better stats for LOAD_ATTR and STORE_ATTR, differentiating several class attributes. There is a slight change to specializing behavior, but it seems to make no difference in pract...
X Description: This PR provides better stats for LOAD_ATTR and STORE_ATTR, differentiating several class attributes. There is a slight change to specializing behavior, but it seems to make no difference in pract...
Opengraph URL: https://github.com/python/cpython/pull/100295
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:4474c77a-8ab6-9ff6-16a1-f89d95c4168e |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | EA72:14F6C1:60564F:85B0DE:69694D71 |
| html-safe-nonce | c652b8b2862368c5b3a42983598fb40df3bb32e624a3e869a80e9c1cd39ce6ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTcyOjE0RjZDMTo2MDU2NEY6ODVCMERFOjY5Njk0RDcxIiwidmlzaXRvcl9pZCI6IjY5OTczNDIzNzY2MDYzODc1NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 279437bc7c614e43a72f0c4ea5dc2c035184eda56b3475d8cd8af277d8a8c103 |
| hovercard-subject-tag | pull_request:1168549474 |
| 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/100295/checks |
| 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 | This PR provides better stats for LOAD_ATTR and STORE_ATTR, differentiating several class attributes. There is a slight change to specializing behavior, but it seems to make no difference in pract... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width