Title: perf: use interned name in `generic_getattr_opt` by sharifhsn · Pull Request #8129 · RustPython/RustPython · GitHub
Open Graph Title: perf: use interned name in `generic_getattr_opt` by sharifhsn · Pull Request #8129 · RustPython/RustPython
X Title: perf: use interned name in `generic_getattr_opt` by sharifhsn · Pull Request #8129 · RustPython/RustPython
Description: Closes #xxxx
This PR follows our AI policy
Summary
generic_getattr_opt looked up the instance dict by name_str.as_wtf8(), which required recomputing the SipHash from the raw bytes on every attribute access. Now name_str: &Py
Open Graph Description: Closes #xxxx This PR follows our AI policy Summary generic_getattr_opt looked up the instance dict by name_str.as_wtf8(), which required recomputing the SipHash from the raw bytes on every attr...
X Description: Closes #xxxx This PR follows our AI policy Summary generic_getattr_opt looked up the instance dict by name_str.as_wtf8(), which required recomputing the SipHash from the raw bytes on every attr...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8129
X: @github
Domain: Github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f8d87e22-09ed-4c1f-7eb2-d3f14e454985 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DC78:1A456E:2A419CC:3A74C3F:6A632B3F |
| html-safe-nonce | 7430b9146bc5e5bcfdd9070dfbab3fc42fd8039abec12753078957b97f0b8ebd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzc4OjFBNDU2RToyQTQxOUNDOjNBNzRDM0Y6NkE2MzJCM0YiLCJ2aXNpdG9yX2lkIjoiNzY1MzE0NzEzNDk4MTc3ODIzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8fa1f309c3ce4e782ac413015f1dea0b726659cb9b273a2534c6a8e7490db2d8 |
| hovercard-subject-tag | pull_request:3887869717 |
| 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/RustPython/RustPython/pull/8129/files |
| twitter:image | https://avatars.githubusercontent.com/u/61516383?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/61516383?s=400&v=4 |
| og:image:alt | Closes #xxxx This PR follows our AI policy Summary generic_getattr_opt looked up the instance dict by name_str.as_wtf8(), which required recomputing the SipHash from the raw bytes on every attr... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 30c644d502bce6cd2e59f9000b4744f2b64819abea8e8f959b18e3ad793125aa |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| 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 | 331492a48ebd91d66ef2de38e1901bb911c9fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width