Changes between Version 1 and Version 2 of Ticket #30307, comment 38


Ignore:
Timestamp:
01/26/21 15:18:59 (16 months ago)
Author:
gh-mjungmath
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30307, comment 38

    v1 v2  
    11Well, `__slots__` makes initializations faster because attribute access is significantly faster (up to 30%). Memory is just an additional benefit.
    22
    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.
     3Even 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`.