Classes with __slots__ ought to be specialized when constructing instances #128262
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
performance
Performance or resource usage
type-feature
A feature request or enhancement
Feature or enhancement
Proposal:
Right now simple classes have the
CALL_ALLOC_AND_ENTER_INIT
specialization when calling their constructor. This however, blocks classes with__slots__
. I propose relaxing the requirement and allowing__slots__
classes to benefit from this specialization as well.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: