2 ms·
Uhh... Did you not see my parenthetical reference to `__slots__`? See this SO post[1] for more details. [1] - http://stackoverflow.com/questions/472000/python-
by burntsushi 13y ago
Uhh... Did you not see my parenthetical reference to `__slots__`? See this SO post[1] for more details.
[1] - http://stackoverflow.com/questions/472000/python-slots http://stackoverflow.com/questions/472000/python-slots
- eevee 13y agoWhoops! I could've sworn that said "without", sorry :) Though I'm not sure `__slots__` actually saves any time, as it's really a space optimization. I've tried it before for hot code and even seen very slight (probably not significant) slowdowns.