Use __slots__
for observer internals
#1511
Labels
component: core
Issues related to the core library
easy
type: performance
Issues related to speed or memory usage
The observation framework has a lot of classes which are small and with a fixed set of attributes. Using
__slots__
on these classes will save memory and give a small performance boost when the attribtutes are accessed.The text was updated successfully, but these errors were encountered: