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

Define __slots__ on all manifest item classes #16589

Merged
merged 1 commit into from Apr 29, 2019

Conversation

gsnedders
Copy link
Member

We previously only defined it on classes which created instance attributes. We still don't need an instance dict on those that don't.

We previously only defined it on classes which created instance
attributes. We still don't need an instance dict on those that don't.
@gsnedders
Copy link
Member Author

This saves about 0.5MB (of RAM) when loading all items (as we do when running tests currently), FWIW.

@gsnedders gsnedders merged commit 973c346 into web-platform-tests:master Apr 29, 2019
@gsnedders gsnedders deleted the all_items_slots branch April 29, 2019 16:23
marcoscaceres pushed a commit that referenced this pull request Jul 23, 2019
We previously only defined it on classes which created instance
attributes. We still don't need an instance dict on those that don't.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants