{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/21167","labels_url":"https://api.github.com/repos/rails/rails/issues/21167/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/21167/comments","events_url":"https://api.github.com/repos/rails/rails/issues/21167/events","html_url":"https://github.com/rails/rails/pull/21167","id":99735130,"number":21167,"title":"replace each with each_key when only the key is needed","user":{"login":"AaronLasseigne","id":297205,"avatar_url":"https://avatars.githubusercontent.com/u/297205?v=3","gravatar_id":"","url":"https://api.github.com/users/AaronLasseigne","html_url":"https://github.com/AaronLasseigne","followers_url":"https://api.github.com/users/AaronLasseigne/followers","following_url":"https://api.github.com/users/AaronLasseigne/following{/other_user}","gists_url":"https://api.github.com/users/AaronLasseigne/gists{/gist_id}","starred_url":"https://api.github.com/users/AaronLasseigne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AaronLasseigne/subscriptions","organizations_url":"https://api.github.com/users/AaronLasseigne/orgs","repos_url":"https://api.github.com/users/AaronLasseigne/repos","events_url":"https://api.github.com/users/AaronLasseigne/events{/privacy}","received_events_url":"https://api.github.com/users/AaronLasseigne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-08-07T21:46:16Z","updated_at":"2015-08-08T16:42:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/21167","html_url":"https://github.com/rails/rails/pull/21167","diff_url":"https://github.com/rails/rails/pull/21167.diff","patch_url":"https://github.com/rails/rails/pull/21167.patch"},"body":"Using each_key is faster and more intention revealing.\r\n\r\n```sh\r\nCalculating -------------------------------------\r\n                each    31.378k i/100ms\r\n            each_key    33.790k i/100ms\r\n-------------------------------------------------\r\n                each    450.225k (± 7.0%) i/s -      2.259M\r\n            each_key    494.459k (± 6.3%) i/s -      2.467M\r\n\r\nComparison:\r\n            each_key:   494459.4 i/s\r\n                each:   450225.1 i/s - 1.10x slower\r\n```"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/129008665","html_url":"https://github.com/rails/rails/pull/21167#issuecomment-129008665","issue_url":"https://api.github.com/repos/rails/rails/issues/21167","id":129008665,"user":{"login":"kaspth","id":350807,"avatar_url":"https://avatars.githubusercontent.com/u/350807?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspth","html_url":"https://github.com/kaspth","followers_url":"https://api.github.com/users/kaspth/followers","following_url":"https://api.github.com/users/kaspth/following{/other_user}","gists_url":"https://api.github.com/users/kaspth/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspth/subscriptions","organizations_url":"https://api.github.com/users/kaspth/orgs","repos_url":"https://api.github.com/users/kaspth/repos","events_url":"https://api.github.com/users/kaspth/events{/privacy}","received_events_url":"https://api.github.com/users/kaspth/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T16:42:19Z","updated_at":"2015-08-08T16:42:19Z","body":"Wups! I told you to take out the wrong `each_key` case, can you add it back in and remove the other? :sweat_smile: "}}