-
Notifications
You must be signed in to change notification settings - Fork 635
Add __slots__ entries. #4637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add __slots__ entries. #4637
Conversation
I noticed the reasoning for non-typed values on the If this pull gets merged, would you accept a pull that types the dictionaries? |
Thanks for the idea - and you are quite right: we should have considered doing this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please extend this idea to the remaining "geometry" class Matrix.
Gladly! Note, this might be kind of limited in it's effectiveness because of some upstream code, namely the swig generated code. Seems easy enough to add. |
I think the test failures can be fixed by deleting [Presumably this was somehow forcing the creation of a |
Apologies, I've been trying to get a job, and I'm helping someone move. I also just found out how to run your tests locally via |
You have to be careful with that, as you don't want someone to change the identity matrix to be anything else. |
I haven't tested it but the only reason for the existence of |
Hello, all this does is add a
__slots__
entry to a few classes. this small change makes an outsized impact, reducing the size of instances dramatically, and leads the way to efficient and fully typed page extraction.