{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/6759","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/6759/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/6759/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/6759/events","html_url":"https://github.com/dotnet/roslyn/issues/6759","id":116712084,"number":6759,"title":"SyntheticBoundNodeFactory can emit Array.Empty<T> for arrays","user":{"login":"bartdesmet","id":7324746,"avatar_url":"https://avatars.githubusercontent.com/u/7324746?v=3","gravatar_id":"","url":"https://api.github.com/users/bartdesmet","html_url":"https://github.com/bartdesmet","followers_url":"https://api.github.com/users/bartdesmet/followers","following_url":"https://api.github.com/users/bartdesmet/following{/other_user}","gists_url":"https://api.github.com/users/bartdesmet/gists{/gist_id}","starred_url":"https://api.github.com/users/bartdesmet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartdesmet/subscriptions","organizations_url":"https://api.github.com/users/bartdesmet/orgs","repos_url":"https://api.github.com/users/bartdesmet/repos","events_url":"https://api.github.com/users/bartdesmet/events{/privacy}","received_events_url":"https://api.github.com/users/bartdesmet/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/Tenet-Performance","name":"Tenet-Performance","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"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":639,"closed_issues":93,"state":"open","created_at":"2015-01-15T20:48:55Z","updated_at":"2015-11-14T05:39:18Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-13T06:47:36Z","updated_at":"2015-11-14T16:49:09Z","closed_at":null,"body":"In the following method:\r\n\r\n```csharp\r\npublic BoundExpression Array(TypeSymbol elementType, ImmutableArray<BoundExpression> elements)\r\n```\r\n\r\na special case for an empty array could be added, causing it to emit a call to Array.Empty (if available to the compilation) in lieu of allocating an empty array."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/156718843","html_url":"https://github.com/dotnet/roslyn/issues/6759#issuecomment-156718843","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/6759","id":156718843,"user":{"login":"gafter","id":3804346,"avatar_url":"https://avatars.githubusercontent.com/u/3804346?v=3","gravatar_id":"","url":"https://api.github.com/users/gafter","html_url":"https://github.com/gafter","followers_url":"https://api.github.com/users/gafter/followers","following_url":"https://api.github.com/users/gafter/following{/other_user}","gists_url":"https://api.github.com/users/gafter/gists{/gist_id}","starred_url":"https://api.github.com/users/gafter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafter/subscriptions","organizations_url":"https://api.github.com/users/gafter/orgs","repos_url":"https://api.github.com/users/gafter/repos","events_url":"https://api.github.com/users/gafter/events{/privacy}","received_events_url":"https://api.github.com/users/gafter/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T16:49:09Z","updated_at":"2015-11-14T16:49:09Z","body":"@bbarry The expression `new T[0]` is required to allocate a new array instance each time it is executed."}}