Specialising LOAD_ATTR for mutable class attributes #93657
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
performance
Performance or resource usage
type-feature
A feature request or enhancement
Currently the following code doesn't specialise:
This use pattern is very common in enums and also the recommended way to check constants in pattern matching. Specialising for
thisall mutable class attributes should speed up those use cases.The text was updated successfully, but these errors were encountered: