{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/7474","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/7474/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/7474/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/7474/events","html_url":"https://github.com/dotnet/corefx/pull/7474","id":145503309,"number":7474,"title":"Avoid array allocations in HttpStatusDescription","user":{"login":"jamesqo","id":9159214,"avatar_url":"https://avatars.githubusercontent.com/u/9159214?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesqo","html_url":"https://github.com/jamesqo","followers_url":"https://api.github.com/users/jamesqo/followers","following_url":"https://api.github.com/users/jamesqo/following{/other_user}","gists_url":"https://api.github.com/users/jamesqo/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesqo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesqo/subscriptions","organizations_url":"https://api.github.com/users/jamesqo/orgs","repos_url":"https://api.github.com/users/jamesqo/repos","events_url":"https://api.github.com/users/jamesqo/events{/privacy}","received_events_url":"https://api.github.com/users/jamesqo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/corefx/labels/cla-already-signed","name":"cla-already-signed","color":"009800"},{"url":"https://api.github.com/repos/dotnet/corefx/labels/System.Net","name":"System.Net","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-03T13:59:12Z","updated_at":"2016-04-03T16:26:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/7474","html_url":"https://github.com/dotnet/corefx/pull/7474","diff_url":"https://github.com/dotnet/corefx/pull/7474.diff","patch_url":"https://github.com/dotnet/corefx/pull/7474.patch"},"body":"Currently, `HttpStatusDescription` in `Common` allocates a static array to map status codes to messages. I've replaced it with a giant switch-case statement that both 1) takes less lines of code and 2) is self explanatory (doesn't need comments explaining what code the message represents).\r\n\r\nScript used to generate the output: https://gist.github.com/jamesqo/78121659bb7b555ac63ecc05f0e7b4de\r\n\r\ncc @davidsh @stephentoub"},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/205006955","html_url":"https://github.com/dotnet/corefx/pull/7474#issuecomment-205006955","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/7474","id":205006955,"user":{"login":"stephentoub","id":2642209,"avatar_url":"https://avatars.githubusercontent.com/u/2642209?v=3","gravatar_id":"","url":"https://api.github.com/users/stephentoub","html_url":"https://github.com/stephentoub","followers_url":"https://api.github.com/users/stephentoub/followers","following_url":"https://api.github.com/users/stephentoub/following{/other_user}","gists_url":"https://api.github.com/users/stephentoub/gists{/gist_id}","starred_url":"https://api.github.com/users/stephentoub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephentoub/subscriptions","organizations_url":"https://api.github.com/users/stephentoub/orgs","repos_url":"https://api.github.com/users/stephentoub/repos","events_url":"https://api.github.com/users/stephentoub/events{/privacy}","received_events_url":"https://api.github.com/users/stephentoub/received_events","type":"User","site_admin":false},"created_at":"2016-04-03T16:26:27Z","updated_at":"2016-04-03T16:26:27Z","body":"Test Innerloop OSX Debug Build and Test please"}}