traitlets icon indicating copy to clipboard operation
traitlets copied to clipboard

Adding __slots__ to improve performance.

Open rmorshea opened this issue 6 years ago • 1 comments

We could probably significantly improve performance if we added __slots__ to HasTraits and common TraitType. We'd just have to include __dict__ as one of the slots to maintain backward compatibility.

rmorshea avatar Apr 04 '19 00:04 rmorshea

@maartenbreddels this is another option for performance enhancements.

rmorshea avatar Nov 28 '20 08:11 rmorshea