{"action":"closed","issue":{"url":"https://api.github.com/repos/ironsmile/nedomi/issues/78","labels_url":"https://api.github.com/repos/ironsmile/nedomi/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/ironsmile/nedomi/issues/78/comments","events_url":"https://api.github.com/repos/ironsmile/nedomi/issues/78/events","html_url":"https://github.com/ironsmile/nedomi/issues/78","id":108273949,"number":78,"title":"Do not use string object hashes as keys in maps","user":{"login":"na--","id":3336773,"avatar_url":"https://avatars.githubusercontent.com/u/3336773?v=3","gravatar_id":"","url":"https://api.github.com/users/na--","html_url":"https://github.com/na--","followers_url":"https://api.github.com/users/na--/followers","following_url":"https://api.github.com/users/na--/following{/other_user}","gists_url":"https://api.github.com/users/na--/gists{/gist_id}","starred_url":"https://api.github.com/users/na--/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/na--/subscriptions","organizations_url":"https://api.github.com/users/na--/orgs","repos_url":"https://api.github.com/users/na--/repos","events_url":"https://api.github.com/users/na--/events{/privacy}","received_events_url":"https://api.github.com/users/na--/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ironsmile/nedomi/labels/optimisation","name":"optimisation","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-25T06:53:03Z","updated_at":"2015-10-02T15:49:27Z","closed_at":"2015-10-02T15:49:27Z","body":"As a future optimization, we probably should stop using ObjectID.StrHash() as a key in different maps and use ObjectID.Hash() instead. This redicuces the used memory by a factor of 2 and should make the map key lookups somewhat faster as well. \r\n\r\nAs for the implementation: define a new `type ObjectIDHash [ObjectIDHashSize]byte` in `types/object_id.go` and use it everywhere?"}}