{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/1368","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/1368/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/1368/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/1368/events","html_url":"https://github.com/dotnet/roslyn/issues/1368","id":62817087,"number":1368,"title":"pool stream used in emit","user":{"login":"heejaechang","id":1333179,"avatar_url":"https://avatars.githubusercontent.com/u/1333179?v=3","gravatar_id":"","url":"https://api.github.com/users/heejaechang","html_url":"https://github.com/heejaechang","followers_url":"https://api.github.com/users/heejaechang/followers","following_url":"https://api.github.com/users/heejaechang/following{/other_user}","gists_url":"https://api.github.com/users/heejaechang/gists{/gist_id}","starred_url":"https://api.github.com/users/heejaechang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heejaechang/subscriptions","organizations_url":"https://api.github.com/users/heejaechang/orgs","repos_url":"https://api.github.com/users/heejaechang/repos","events_url":"https://api.github.com/users/heejaechang/events{/privacy}","received_events_url":"https://api.github.com/users/heejaechang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Enhancement","name":"Enhancement","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Resolution-Won't%20Fix","name":"Resolution-Won't Fix","color":"cccccc"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Tenet-Performance","name":"Tenet-Performance","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"pharring","id":9952654,"avatar_url":"https://avatars.githubusercontent.com/u/9952654?v=3","gravatar_id":"","url":"https://api.github.com/users/pharring","html_url":"https://github.com/pharring","followers_url":"https://api.github.com/users/pharring/followers","following_url":"https://api.github.com/users/pharring/following{/other_user}","gists_url":"https://api.github.com/users/pharring/gists{/gist_id}","starred_url":"https://api.github.com/users/pharring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pharring/subscriptions","organizations_url":"https://api.github.com/users/pharring/orgs","repos_url":"https://api.github.com/users/pharring/repos","events_url":"https://api.github.com/users/pharring/events{/privacy}","received_events_url":"https://api.github.com/users/pharring/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/4","html_url":"https://github.com/dotnet/roslyn/milestones/1.2","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/4/labels","id":937402,"number":4,"title":"1.2","description":"This is our 1.2 Milestone.\r\n\r\n<!---\r\n@huboard:{\"order\":2.0}\r\n-->\r\n","creator":{"login":"jaredpar","id":146967,"avatar_url":"https://avatars.githubusercontent.com/u/146967?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredpar","html_url":"https://github.com/jaredpar","followers_url":"https://api.github.com/users/jaredpar/followers","following_url":"https://api.github.com/users/jaredpar/following{/other_user}","gists_url":"https://api.github.com/users/jaredpar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredpar/subscriptions","organizations_url":"https://api.github.com/users/jaredpar/orgs","repos_url":"https://api.github.com/users/jaredpar/repos","events_url":"https://api.github.com/users/jaredpar/events{/privacy}","received_events_url":"https://api.github.com/users/jaredpar/received_events","type":"User","site_admin":false},"open_issues":557,"closed_issues":29,"state":"open","created_at":"2015-01-15T20:48:55Z","updated_at":"2015-10-27T13:42:53Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-03-18T22:20:57Z","updated_at":"2015-10-27T13:42:53Z","closed_at":"2015-10-27T13:42:53Z","body":"one of trace from user (http://stackoverflow.com/questions/28607217/compiletimes-with-roslyn-suddenly-drop) shows this is one of top 3 allocations caused by roslyn when emitting.\r\n\r\nwe should pool the stream.\r\n\r\nName                                                                                                                                                \tInc %\t          Inc\tInc Ct\tExc %\r\n microsoft.codeanalysis!MemoryStream.Grow                                                                                                           \t  6.2\t   20,880,500\t    24\t  0.0\r\n+ microsoft.codeanalysis!MemoryStream.Write                                                                                                         \t  3.9\t   13,110,624\t    11\t  0.0\r\n|+ microsoft.codeanalysis!MetadataWriter.SerializeMethodBody                                                                                        \t  2.4\t    8,172,220\t     6\t  0.0\r\n||+ microsoft.codeanalysis!MetadataWriter.SerializeMethodBodies                                                                                     \t  2.4\t    8,172,220\t     6\t  0.0\r\n|| + microsoft.codeanalysis!MetadataWriter.SerializeMetadataAndIL                                                                                   \t  2.4\t    8,172,220\t     6\t  0.0\r\n||  + microsoft.codeanalysis!PeWriter.WritePeToStream                                                                                               \t  2.4\t    8,172,220\t     6\t  0.0\r\n||   + microsoft.codeanalysis!PeWriter.WritePeToStream                                                                                              \t  2.4\t    8,172,220\t     6\t  0.0\r\n||    + microsoft.codeanalysis!Compilation.SerializeToPeStream                                                                                      \t  2.4\t    8,172,220\t     6\t  0.0\r\n||     + microsoft.codeanalysis!Compilation.Emit                                                                                                    \t  2.4\t    8,172,220\t     6\t  0.0\r\n||      + microsoft.codeanalysis!Compilation.Emit                                                                                                   \t  2.4\t    8,172,220\t     6\t  0.0\r\n||       + microsoft.codeanalysis.desktop!FileSystemExtensions.Emit                                                                                 \t  2.4\t    8,172,220\t     6\t  0.0\r\n||        + afas.runtimegenerator!Generator.TryCompile                                                                                              \t  2.4\t    8,172,220\t     6\t  0.0\r\n||         + afas.runtimegenerator!Afas.RuntimeGenerator.Generator+<>c__DisplayClass13.<TryCompile>b__d(class Afas.RuntimeGenerator.CSDom.CSProject)\t  2.4\t    8,172,220\t     6\t  0.0\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/151500491","html_url":"https://github.com/dotnet/roslyn/issues/1368#issuecomment-151500491","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/1368","id":151500491,"user":{"login":"pharring","id":9952654,"avatar_url":"https://avatars.githubusercontent.com/u/9952654?v=3","gravatar_id":"","url":"https://api.github.com/users/pharring","html_url":"https://github.com/pharring","followers_url":"https://api.github.com/users/pharring/followers","following_url":"https://api.github.com/users/pharring/following{/other_user}","gists_url":"https://api.github.com/users/pharring/gists{/gist_id}","starred_url":"https://api.github.com/users/pharring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pharring/subscriptions","organizations_url":"https://api.github.com/users/pharring/orgs","repos_url":"https://api.github.com/users/pharring/repos","events_url":"https://api.github.com/users/pharring/events{/privacy}","received_events_url":"https://api.github.com/users/pharring/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T13:42:53Z","updated_at":"2015-10-27T13:42:53Z","body":"I don't think there's enough supporting data to go forward with this."}}