Skip to content
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

Use __slots__ for observer internals #1511

Closed
corranwebster opened this issue Sep 8, 2021 · 0 comments · Fixed by #1515
Closed

Use __slots__ for observer internals #1511

corranwebster opened this issue Sep 8, 2021 · 0 comments · Fixed by #1515
Labels
component: core Issues related to the core library easy type: performance Issues related to speed or memory usage

Comments

@corranwebster
Copy link
Contributor

The observation framework has a lot of classes which are small and with a fixed set of attributes. Using __slots__ on these classes will save memory and give a small performance boost when the attribtutes are accessed.

@corranwebster corranwebster added easy type: performance Issues related to speed or memory usage component: core Issues related to the core library labels Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: core Issues related to the core library easy type: performance Issues related to speed or memory usage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant