{"action":"closed","issue":{"url":"https://api.github.com/repos/gem/oq-risklib/issues/541","labels_url":"https://api.github.com/repos/gem/oq-risklib/issues/541/labels{/name}","comments_url":"https://api.github.com/repos/gem/oq-risklib/issues/541/comments","events_url":"https://api.github.com/repos/gem/oq-risklib/issues/541/events","html_url":"https://github.com/gem/oq-risklib/issues/541","id":117781003,"number":541,"title":"Removing `__slots__` in hazardlib","user":{"login":"micheles","id":2463856,"avatar_url":"https://avatars.githubusercontent.com/u/2463856?v=3","gravatar_id":"","url":"https://api.github.com/users/micheles","html_url":"https://github.com/micheles","followers_url":"https://api.github.com/users/micheles/followers","following_url":"https://api.github.com/users/micheles/following{/other_user}","gists_url":"https://api.github.com/users/micheles/gists{/gist_id}","starred_url":"https://api.github.com/users/micheles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheles/subscriptions","organizations_url":"https://api.github.com/users/micheles/orgs","repos_url":"https://api.github.com/users/micheles/repos","events_url":"https://api.github.com/users/micheles/events{/privacy}","received_events_url":"https://api.github.com/users/micheles/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gem/oq-risklib/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"micheles","id":2463856,"avatar_url":"https://avatars.githubusercontent.com/u/2463856?v=3","gravatar_id":"","url":"https://api.github.com/users/micheles","html_url":"https://github.com/micheles","followers_url":"https://api.github.com/users/micheles/followers","following_url":"https://api.github.com/users/micheles/following{/other_user}","gists_url":"https://api.github.com/users/micheles/gists{/gist_id}","starred_url":"https://api.github.com/users/micheles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheles/subscriptions","organizations_url":"https://api.github.com/users/micheles/orgs","repos_url":"https://api.github.com/users/micheles/repos","events_url":"https://api.github.com/users/micheles/events{/privacy}","received_events_url":"https://api.github.com/users/micheles/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/gem/oq-risklib/milestones/3","html_url":"https://github.com/gem/oq-risklib/milestones/Engine%201.7.0","labels_url":"https://api.github.com/repos/gem/oq-risklib/milestones/3/labels","id":1367605,"number":3,"title":"Engine 1.7.0","description":"","creator":{"login":"micheles","id":2463856,"avatar_url":"https://avatars.githubusercontent.com/u/2463856?v=3","gravatar_id":"","url":"https://api.github.com/users/micheles","html_url":"https://github.com/micheles","followers_url":"https://api.github.com/users/micheles/followers","following_url":"https://api.github.com/users/micheles/following{/other_user}","gists_url":"https://api.github.com/users/micheles/gists{/gist_id}","starred_url":"https://api.github.com/users/micheles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micheles/subscriptions","organizations_url":"https://api.github.com/users/micheles/orgs","repos_url":"https://api.github.com/users/micheles/repos","events_url":"https://api.github.com/users/micheles/events{/privacy}","received_events_url":"https://api.github.com/users/micheles/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":7,"state":"open","created_at":"2015-10-21T05:08:39Z","updated_at":"2015-11-20T03:54:54Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-11-19T10:07:56Z","updated_at":"2015-11-20T03:54:54Z","closed_at":"2015-11-20T03:54:54Z","body":"I have wanted to remove the `__slots__` in hazardlib for three years, because I always suspected that they were useless. Today I have the proof of that: I ran the Turkey calculation (which is a particularly memory hungry calculation using the SHARE model) with and without slots and there is no measurable difference in the memory occupation. Removing the `__slots__` means avoid a large\r\nclass of pickling errors, such as forgetting to add `_mesh` to the slots of PlanarRupture and running into the [problem submitted by Blaž Barič](https://groups.google.com/d/msg/openquake-users/D8vf1AXNXDM/Zj-ECHmbBgAJ)."}}