You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The LOAD_ATTR_INSTANCE_VALUE instruction can be sped up by storing the offset of the valid field in the cache. #152063
LOAD_ATTR_INSTANCE_VALUE needs to check the validity of the objects embedded values array.
Currently, it does that by computing the offset of the valid byte.
Instead we could store the offset in the inline cache as LOAD_ATTR_INSTANCE_VALUE has several inline cache entries to spare.
The check is done in the _CHECK_MANAGED_OBJECT_HAS_VALUES uop.
Could this also be applied to LOAD_ATTR_METHOD_WITH_VALUES and LOAD_ATTR_NONDESCRIPTOR_WITH_VALUES since after gh-152066, all three of these would use _CHECK_MANAGED_OBJECT_HAS_VALUES?
Activity
markshannon commentedon Jun 24, 2026
This is not a new feature, just a small optimization.
brijkapadia commentedon Jun 25, 2026
Could this also be applied to
LOAD_ATTR_METHOD_WITH_VALUESandLOAD_ATTR_NONDESCRIPTOR_WITH_VALUESsince after gh-152066, all three of these would use_CHECK_MANAGED_OBJECT_HAS_VALUES?