{"action":"created","issue":{"url":"https://api.github.com/repos/etsy/statsd/issues/511","labels_url":"https://api.github.com/repos/etsy/statsd/issues/511/labels{/name}","comments_url":"https://api.github.com/repos/etsy/statsd/issues/511/comments","events_url":"https://api.github.com/repos/etsy/statsd/issues/511/events","html_url":"https://github.com/etsy/statsd/pull/511","id":75685059,"number":511,"title":"Set nitpick","user":{"login":"smarden1","id":549155,"avatar_url":"https://avatars.githubusercontent.com/u/549155?v=3","gravatar_id":"","url":"https://api.github.com/users/smarden1","html_url":"https://github.com/smarden1","followers_url":"https://api.github.com/users/smarden1/followers","following_url":"https://api.github.com/users/smarden1/following{/other_user}","gists_url":"https://api.github.com/users/smarden1/gists{/gist_id}","starred_url":"https://api.github.com/users/smarden1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarden1/subscriptions","organizations_url":"https://api.github.com/users/smarden1/orgs","repos_url":"https://api.github.com/users/smarden1/repos","events_url":"https://api.github.com/users/smarden1/events{/privacy}","received_events_url":"https://api.github.com/users/smarden1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-12T17:58:47Z","updated_at":"2015-05-18T17:42:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/etsy/statsd/pulls/511","html_url":"https://github.com/etsy/statsd/pull/511","diff_url":"https://github.com/etsy/statsd/pull/511.diff","patch_url":"https://github.com/etsy/statsd/pull/511.patch"},"body":"two minor tweaks to set.js...\r\n\r\n1. the first is to have the sets only store a boolean to indicate that a key is stored rather than duplicating the key into the value.\r\n\r\n2. the second adds the size method, which simply returns the size of the set. It seems that we only care about values for getting the actual size, so it makes sense to me to do this on the set itself."},"comment":{"url":"https://api.github.com/repos/etsy/statsd/issues/comments/103145593","html_url":"https://github.com/etsy/statsd/pull/511#issuecomment-103145593","issue_url":"https://api.github.com/repos/etsy/statsd/issues/511","id":103145593,"user":{"login":"smarden1","id":549155,"avatar_url":"https://avatars.githubusercontent.com/u/549155?v=3","gravatar_id":"","url":"https://api.github.com/users/smarden1","html_url":"https://github.com/smarden1","followers_url":"https://api.github.com/users/smarden1/followers","following_url":"https://api.github.com/users/smarden1/following{/other_user}","gists_url":"https://api.github.com/users/smarden1/gists{/gist_id}","starred_url":"https://api.github.com/users/smarden1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarden1/subscriptions","organizations_url":"https://api.github.com/users/smarden1/orgs","repos_url":"https://api.github.com/users/smarden1/repos","events_url":"https://api.github.com/users/smarden1/events{/privacy}","received_events_url":"https://api.github.com/users/smarden1/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T17:42:20Z","updated_at":"2015-05-18T17:42:20Z","body":"Great question. I wasn't sure so I timed it... and it appears to be twice as fast...\r\n\r\nhttps://gist.github.com/smarden1/2cebe6eb07e964c8088b"}}