{"action":"closed","issue":{"url":"https://api.github.com/repos/aspnet/Razor/issues/621","repository_url":"https://api.github.com/repos/aspnet/Razor","labels_url":"https://api.github.com/repos/aspnet/Razor/issues/621/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Razor/issues/621/comments","events_url":"https://api.github.com/repos/aspnet/Razor/issues/621/events","html_url":"https://github.com/aspnet/Razor/issues/621","id":118447175,"number":621,"title":"Optimize TagHelperContent for SetContent","user":{"login":"rynowak","id":1430011,"avatar_url":"https://avatars.githubusercontent.com/u/1430011?v=3","gravatar_id":"","url":"https://api.github.com/users/rynowak","html_url":"https://github.com/rynowak","followers_url":"https://api.github.com/users/rynowak/followers","following_url":"https://api.github.com/users/rynowak/following{/other_user}","gists_url":"https://api.github.com/users/rynowak/gists{/gist_id}","starred_url":"https://api.github.com/users/rynowak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rynowak/subscriptions","organizations_url":"https://api.github.com/users/rynowak/orgs","repos_url":"https://api.github.com/users/rynowak/repos","events_url":"https://api.github.com/users/rynowak/events{/privacy}","received_events_url":"https://api.github.com/users/rynowak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Razor/labels/3%20-%20Done","name":"3 - Done","color":"CCCCCC"},{"url":"https://api.github.com/repos/aspnet/Razor/labels/Perf","name":"Perf","color":"fef2c0"}],"state":"closed","locked":false,"assignee":{"login":"NTaylorMullen","id":2008729,"avatar_url":"https://avatars.githubusercontent.com/u/2008729?v=3","gravatar_id":"","url":"https://api.github.com/users/NTaylorMullen","html_url":"https://github.com/NTaylorMullen","followers_url":"https://api.github.com/users/NTaylorMullen/followers","following_url":"https://api.github.com/users/NTaylorMullen/following{/other_user}","gists_url":"https://api.github.com/users/NTaylorMullen/gists{/gist_id}","starred_url":"https://api.github.com/users/NTaylorMullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NTaylorMullen/subscriptions","organizations_url":"https://api.github.com/users/NTaylorMullen/orgs","repos_url":"https://api.github.com/users/NTaylorMullen/repos","events_url":"https://api.github.com/users/NTaylorMullen/events{/privacy}","received_events_url":"https://api.github.com/users/NTaylorMullen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aspnet/Razor/milestones/17","html_url":"https://github.com/aspnet/Razor/milestones/1.0.0-rc2","labels_url":"https://api.github.com/repos/aspnet/Razor/milestones/17/labels","id":1370820,"number":17,"title":"1.0.0-rc2","description":"","creator":{"login":"Eilon","id":202643,"avatar_url":"https://avatars.githubusercontent.com/u/202643?v=3","gravatar_id":"","url":"https://api.github.com/users/Eilon","html_url":"https://github.com/Eilon","followers_url":"https://api.github.com/users/Eilon/followers","following_url":"https://api.github.com/users/Eilon/following{/other_user}","gists_url":"https://api.github.com/users/Eilon/gists{/gist_id}","starred_url":"https://api.github.com/users/Eilon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eilon/subscriptions","organizations_url":"https://api.github.com/users/Eilon/orgs","repos_url":"https://api.github.com/users/Eilon/repos","events_url":"https://api.github.com/users/Eilon/events{/privacy}","received_events_url":"https://api.github.com/users/Eilon/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":39,"state":"open","created_at":"2015-10-22T16:54:46Z","updated_at":"2016-04-05T23:11:06Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-11-23T18:56:09Z","updated_at":"2016-04-05T23:11:06Z","closed_at":"2016-04-05T23:11:05Z","body":"Much of the time a `TagHelperContent` has its content set by calling `SetContent`. In these usages there will generally just be one item added to the buffer. We can optimize this by eliding the creation of the buffer when `SetContent` is used.\r\n\r\nWe might want to look for another magic number here besides 1, but it's clear that inlining a single item can be a win.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1430011/11346255/93a404d4-91d0-11e5-8bbf-35a0509606be.png)\r\n"}}