{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/563","repository_url":"https://api.github.com/repos/aspnet/HttpAbstractions","labels_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/563/comments","events_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/563/events","html_url":"https://github.com/aspnet/HttpAbstractions/pull/563","id":134051835,"number":563,"title":"Extend `WebEncoders` API to avoid allocations within the methods","user":{"login":"dougbu","id":6431421,"avatar_url":"https://avatars.githubusercontent.com/u/6431421?v=3","gravatar_id":"","url":"https://api.github.com/users/dougbu","html_url":"https://github.com/dougbu","followers_url":"https://api.github.com/users/dougbu/followers","following_url":"https://api.github.com/users/dougbu/following{/other_user}","gists_url":"https://api.github.com/users/dougbu/gists{/gist_id}","starred_url":"https://api.github.com/users/dougbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougbu/subscriptions","organizations_url":"https://api.github.com/users/dougbu/orgs","repos_url":"https://api.github.com/users/dougbu/repos","events_url":"https://api.github.com/users/dougbu/events{/privacy}","received_events_url":"https://api.github.com/users/dougbu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/HttpAbstractions/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-16T17:56:44Z","updated_at":"2016-02-17T08:11:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aspnet/HttpAbstractions/pulls/563","html_url":"https://github.com/aspnet/HttpAbstractions/pull/563","diff_url":"https://github.com/aspnet/HttpAbstractions/pull/563.diff","patch_url":"https://github.com/aspnet/HttpAbstractions/pull/563.patch"},"body":"- rewrite existing methods in terms of the new ones\r\n- don't allocate multiple 0-length arrays\r\n\r\nnit:\r\n- clarify a couple of doc comments e.g. using `<paramref/>`\r\n- move an error message into a resource\r\n - pass parameter names into new resource\r\n- rename parameters for consistency e.g. `inputLength` -> `count`"},"comment":{"url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/comments/185088794","html_url":"https://github.com/aspnet/HttpAbstractions/pull/563#issuecomment-185088794","issue_url":"https://api.github.com/repos/aspnet/HttpAbstractions/issues/563","id":185088794,"user":{"login":"davidfowl","id":95136,"avatar_url":"https://avatars.githubusercontent.com/u/95136?v=3","gravatar_id":"","url":"https://api.github.com/users/davidfowl","html_url":"https://github.com/davidfowl","followers_url":"https://api.github.com/users/davidfowl/followers","following_url":"https://api.github.com/users/davidfowl/following{/other_user}","gists_url":"https://api.github.com/users/davidfowl/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfowl/subscriptions","organizations_url":"https://api.github.com/users/davidfowl/orgs","repos_url":"https://api.github.com/users/davidfowl/repos","events_url":"https://api.github.com/users/davidfowl/events{/privacy}","received_events_url":"https://api.github.com/users/davidfowl/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T08:11:21Z","updated_at":"2016-02-17T08:11:21Z","body":"Seems like it might be worthwhile to consider a low allocation pattern where the user provides all of the input and output structures. They way they can pool arrays or instead of us having to new things up. The only issue might be knowing what the size of the output array is. I wonder of there are any nice patterns for doing this.\r\n\r\n"}}