A few small getattr slowpath microoptimizations
- call PyType_Check instead of isSubclass - unlikely() - object_cls gets checked all the time but only has attributes that start with '_'
Showing
Please register or sign in to comment
- call PyType_Check instead of isSubclass - unlikely() - object_cls gets checked all the time but only has attributes that start with '_'