3 ms·
I'd expect it to also improve things in regular code since class attributes are saved in __dict__, unless you use __slots__. I might be wrong though (remember
by halflings 10y ago
I'd expect it to also improve things in regular code since class attributes are saved in __dict__, unless you use __slots__.
I might be wrong though (remember seeing that talk by Heroku about how objects are treated differently even in CPython).