Skip to content

Classes should use __slots__ in order to reduce memory footprint. #888

Open
@ArachnidAbby

Description

@ArachnidAbby

Feature request

It would be fairly simple to add the __slots__ variable to most of or all the classes.

reasons to add __slots__

  • reduces memory footprint of classes (biggest advantage imo)
  • they are slightly faster
  • helps with IDE type checkers

If you accept this idea, I can do it for you and make a pull request with the changes made.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needtriageNeeds to be triaged further

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions