{"action":"opened","issue":{"url":"https://api.github.com/repos/ethereum/py-evm/issues/520","repository_url":"https://api.github.com/repos/ethereum/py-evm","labels_url":"https://api.github.com/repos/ethereum/py-evm/issues/520/labels{/name}","comments_url":"https://api.github.com/repos/ethereum/py-evm/issues/520/comments","events_url":"https://api.github.com/repos/ethereum/py-evm/issues/520/events","html_url":"https://github.com/ethereum/py-evm/issues/520","id":310077833,"number":520,"title":"Use `__slots__`","user":{"login":"pipermerriam","id":824194,"avatar_url":"https://avatars3.githubusercontent.com/u/824194?v=4","gravatar_id":"","url":"https://api.github.com/users/pipermerriam","html_url":"https://github.com/pipermerriam","followers_url":"https://api.github.com/users/pipermerriam/followers","following_url":"https://api.github.com/users/pipermerriam/following{/other_user}","gists_url":"https://api.github.com/users/pipermerriam/gists{/gist_id}","starred_url":"https://api.github.com/users/pipermerriam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pipermerriam/subscriptions","organizations_url":"https://api.github.com/users/pipermerriam/orgs","repos_url":"https://api.github.com/users/pipermerriam/repos","events_url":"https://api.github.com/users/pipermerriam/events{/privacy}","received_events_url":"https://api.github.com/users/pipermerriam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-30T14:20:40Z","updated_at":"2018-03-30T14:20:40Z","closed_at":null,"author_association":"MEMBER","body":"http://book.pythontips.com/en/latest/__slots__magic.html\r\n\r\nCurrently we use this pattern to denote that `MyThing` will have a `prop_a` property.\r\n\r\n```python\r\nclass MyThing:\r\n    prop_a = None\r\n```\r\n\r\nIt looks like if we instead use `__slots__` we could see 40-50% reduction in memory footprint.\r\n\r\n```python\r\nclass MyThing:\r\n    __slots__ = [\"prop_a\"]\r\n```\r\n\r\nhttp://book.pythontips.com/en/latest/__slots__magic.html"}}
{"actor":{"display_login":"pipermerriam"}}