traitlets
traitlets copied to clipboard
Adding __slots__ to improve performance.
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.
@maartenbreddels this is another option for performance enhancements.