Changes between Version 1 and Version 2 of Ticket #30307, comment 38
- Timestamp:
- 01/26/21 15:18:59 (16 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30307, comment 38
v1 v2 1 1 Well, `__slots__` makes initializations faster because attribute access is significantly faster (up to 30%). Memory is just an additional benefit. 2 2 3 Even if we turn `Components` into a `cpdef`, I think we still gain a good performance boost with `__slots__` which can sum up quickly .3 Even if we turn `Components` into a `cpdef`, I think we still gain a good performance boost with `__slots__` which can sum up quickly with recurrent use of `_comp`.