{"action":"opened","number":1064,"pull_request":{"url":"https://api.github.com/repos/NLog/NLog/pulls/1064","id":51870397,"html_url":"https://github.com/NLog/NLog/pull/1064","diff_url":"https://github.com/NLog/NLog/pull/1064.diff","patch_url":"https://github.com/NLog/NLog/pull/1064.patch","issue_url":"https://api.github.com/repos/NLog/NLog/issues/1064","number":1064,"state":"open","locked":false,"title":"Reduce memory allocations in short date layout renderer","user":{"login":"epignosisx","id":697377,"avatar_url":"https://avatars.githubusercontent.com/u/697377?v=3","gravatar_id":"","url":"https://api.github.com/users/epignosisx","html_url":"https://github.com/epignosisx","followers_url":"https://api.github.com/users/epignosisx/followers","following_url":"https://api.github.com/users/epignosisx/following{/other_user}","gists_url":"https://api.github.com/users/epignosisx/gists{/gist_id}","starred_url":"https://api.github.com/users/epignosisx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epignosisx/subscriptions","organizations_url":"https://api.github.com/users/epignosisx/orgs","repos_url":"https://api.github.com/users/epignosisx/repos","events_url":"https://api.github.com/users/epignosisx/events{/privacy}","received_events_url":"https://api.github.com/users/epignosisx/received_events","type":"User","site_admin":false},"body":"Applying the same optimization used in `LongDateLayoutRenderer` to reduce the number of allocations in `ShortDateLayoutRenderer`.\r\n\r\nHere are the numbers where it can be seen how the number of strings and char[] are reduced.\r\n\r\nBefore:\r\n![image](https://cloud.githubusercontent.com/assets/697377/11414763/37235630-93c7-11e5-83bd-c8ab39ab69e5.png)\r\n\r\nAfter:\r\n![image](https://cloud.githubusercontent.com/assets/697377/11414768/49dc5c0e-93c7-11e5-9e3f-c7011d0b075d.png)\r\n","created_at":"2015-11-26T03:54:34Z","updated_at":"2015-11-26T03:54:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NLog/NLog/pulls/1064/commits","review_comments_url":"https://api.github.com/repos/NLog/NLog/pulls/1064/comments","review_comment_url":"https://api.github.com/repos/NLog/NLog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/1064/comments","statuses_url":"https://api.github.com/repos/NLog/NLog/statuses/11f2bede0eb2d97af25a005b506793551ecffbca","head":{"label":"epignosisx:reduce_mem_alloc_in_ShortDateLayoutRenderer","ref":"reduce_mem_alloc_in_ShortDateLayoutRenderer","sha":"11f2bede0eb2d97af25a005b506793551ecffbca","user":{"login":"epignosisx","id":697377,"avatar_url":"https://avatars.githubusercontent.com/u/697377?v=3","gravatar_id":"","url":"https://api.github.com/users/epignosisx","html_url":"https://github.com/epignosisx","followers_url":"https://api.github.com/users/epignosisx/followers","following_url":"https://api.github.com/users/epignosisx/following{/other_user}","gists_url":"https://api.github.com/users/epignosisx/gists{/gist_id}","starred_url":"https://api.github.com/users/epignosisx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epignosisx/subscriptions","organizations_url":"https://api.github.com/users/epignosisx/orgs","repos_url":"https://api.github.com/users/epignosisx/repos","events_url":"https://api.github.com/users/epignosisx/events{/privacy}","received_events_url":"https://api.github.com/users/epignosisx/received_events","type":"User","site_admin":false},"repo":{"id":45754204,"name":"NLog","full_name":"epignosisx/NLog","owner":{"login":"epignosisx","id":697377,"avatar_url":"https://avatars.githubusercontent.com/u/697377?v=3","gravatar_id":"","url":"https://api.github.com/users/epignosisx","html_url":"https://github.com/epignosisx","followers_url":"https://api.github.com/users/epignosisx/followers","following_url":"https://api.github.com/users/epignosisx/following{/other_user}","gists_url":"https://api.github.com/users/epignosisx/gists{/gist_id}","starred_url":"https://api.github.com/users/epignosisx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/epignosisx/subscriptions","organizations_url":"https://api.github.com/users/epignosisx/orgs","repos_url":"https://api.github.com/users/epignosisx/repos","events_url":"https://api.github.com/users/epignosisx/events{/privacy}","received_events_url":"https://api.github.com/users/epignosisx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/epignosisx/NLog","description":"NLog - Advanced .NET and Silverlight Logging","fork":true,"url":"https://api.github.com/repos/epignosisx/NLog","forks_url":"https://api.github.com/repos/epignosisx/NLog/forks","keys_url":"https://api.github.com/repos/epignosisx/NLog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/epignosisx/NLog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/epignosisx/NLog/teams","hooks_url":"https://api.github.com/repos/epignosisx/NLog/hooks","issue_events_url":"https://api.github.com/repos/epignosisx/NLog/issues/events{/number}","events_url":"https://api.github.com/repos/epignosisx/NLog/events","assignees_url":"https://api.github.com/repos/epignosisx/NLog/assignees{/user}","branches_url":"https://api.github.com/repos/epignosisx/NLog/branches{/branch}","tags_url":"https://api.github.com/repos/epignosisx/NLog/tags","blobs_url":"https://api.github.com/repos/epignosisx/NLog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/epignosisx/NLog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/epignosisx/NLog/git/refs{/sha}","trees_url":"https://api.github.com/repos/epignosisx/NLog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/epignosisx/NLog/statuses/{sha}","languages_url":"https://api.github.com/repos/epignosisx/NLog/languages","stargazers_url":"https://api.github.com/repos/epignosisx/NLog/stargazers","contributors_url":"https://api.github.com/repos/epignosisx/NLog/contributors","subscribers_url":"https://api.github.com/repos/epignosisx/NLog/subscribers","subscription_url":"https://api.github.com/repos/epignosisx/NLog/subscription","commits_url":"https://api.github.com/repos/epignosisx/NLog/commits{/sha}","git_commits_url":"https://api.github.com/repos/epignosisx/NLog/git/commits{/sha}","comments_url":"https://api.github.com/repos/epignosisx/NLog/comments{/number}","issue_comment_url":"https://api.github.com/repos/epignosisx/NLog/issues/comments{/number}","contents_url":"https://api.github.com/repos/epignosisx/NLog/contents/{+path}","compare_url":"https://api.github.com/repos/epignosisx/NLog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/epignosisx/NLog/merges","archive_url":"https://api.github.com/repos/epignosisx/NLog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/epignosisx/NLog/downloads","issues_url":"https://api.github.com/repos/epignosisx/NLog/issues{/number}","pulls_url":"https://api.github.com/repos/epignosisx/NLog/pulls{/number}","milestones_url":"https://api.github.com/repos/epignosisx/NLog/milestones{/number}","notifications_url":"https://api.github.com/repos/epignosisx/NLog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/epignosisx/NLog/labels{/name}","releases_url":"https://api.github.com/repos/epignosisx/NLog/releases{/id}","created_at":"2015-11-07T20:55:06Z","updated_at":"2015-11-07T20:55:11Z","pushed_at":"2015-11-26T03:49:37Z","git_url":"git://github.com/epignosisx/NLog.git","ssh_url":"git@github.com:epignosisx/NLog.git","clone_url":"https://github.com/epignosisx/NLog.git","svn_url":"https://github.com/epignosisx/NLog","homepage":"http://nlog-project.org","size":48160,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NLog:master","ref":"master","sha":"9a74780eb92654cafd3a8d2748139f997b48c55f","user":{"login":"NLog","id":2331628,"avatar_url":"https://avatars.githubusercontent.com/u/2331628?v=3","gravatar_id":"","url":"https://api.github.com/users/NLog","html_url":"https://github.com/NLog","followers_url":"https://api.github.com/users/NLog/followers","following_url":"https://api.github.com/users/NLog/following{/other_user}","gists_url":"https://api.github.com/users/NLog/gists{/gist_id}","starred_url":"https://api.github.com/users/NLog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NLog/subscriptions","organizations_url":"https://api.github.com/users/NLog/orgs","repos_url":"https://api.github.com/users/NLog/repos","events_url":"https://api.github.com/users/NLog/events{/privacy}","received_events_url":"https://api.github.com/users/NLog/received_events","type":"Organization","site_admin":false},"repo":{"id":5780416,"name":"NLog","full_name":"NLog/NLog","owner":{"login":"NLog","id":2331628,"avatar_url":"https://avatars.githubusercontent.com/u/2331628?v=3","gravatar_id":"","url":"https://api.github.com/users/NLog","html_url":"https://github.com/NLog","followers_url":"https://api.github.com/users/NLog/followers","following_url":"https://api.github.com/users/NLog/following{/other_user}","gists_url":"https://api.github.com/users/NLog/gists{/gist_id}","starred_url":"https://api.github.com/users/NLog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NLog/subscriptions","organizations_url":"https://api.github.com/users/NLog/orgs","repos_url":"https://api.github.com/users/NLog/repos","events_url":"https://api.github.com/users/NLog/events{/privacy}","received_events_url":"https://api.github.com/users/NLog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NLog/NLog","description":"NLog - Advanced .NET and Silverlight Logging","fork":false,"url":"https://api.github.com/repos/NLog/NLog","forks_url":"https://api.github.com/repos/NLog/NLog/forks","keys_url":"https://api.github.com/repos/NLog/NLog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NLog/NLog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NLog/NLog/teams","hooks_url":"https://api.github.com/repos/NLog/NLog/hooks","issue_events_url":"https://api.github.com/repos/NLog/NLog/issues/events{/number}","events_url":"https://api.github.com/repos/NLog/NLog/events","assignees_url":"https://api.github.com/repos/NLog/NLog/assignees{/user}","branches_url":"https://api.github.com/repos/NLog/NLog/branches{/branch}","tags_url":"https://api.github.com/repos/NLog/NLog/tags","blobs_url":"https://api.github.com/repos/NLog/NLog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NLog/NLog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NLog/NLog/git/refs{/sha}","trees_url":"https://api.github.com/repos/NLog/NLog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NLog/NLog/statuses/{sha}","languages_url":"https://api.github.com/repos/NLog/NLog/languages","stargazers_url":"https://api.github.com/repos/NLog/NLog/stargazers","contributors_url":"https://api.github.com/repos/NLog/NLog/contributors","subscribers_url":"https://api.github.com/repos/NLog/NLog/subscribers","subscription_url":"https://api.github.com/repos/NLog/NLog/subscription","commits_url":"https://api.github.com/repos/NLog/NLog/commits{/sha}","git_commits_url":"https://api.github.com/repos/NLog/NLog/git/commits{/sha}","comments_url":"https://api.github.com/repos/NLog/NLog/comments{/number}","issue_comment_url":"https://api.github.com/repos/NLog/NLog/issues/comments{/number}","contents_url":"https://api.github.com/repos/NLog/NLog/contents/{+path}","compare_url":"https://api.github.com/repos/NLog/NLog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NLog/NLog/merges","archive_url":"https://api.github.com/repos/NLog/NLog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NLog/NLog/downloads","issues_url":"https://api.github.com/repos/NLog/NLog/issues{/number}","pulls_url":"https://api.github.com/repos/NLog/NLog/pulls{/number}","milestones_url":"https://api.github.com/repos/NLog/NLog/milestones{/number}","notifications_url":"https://api.github.com/repos/NLog/NLog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NLog/NLog/labels{/name}","releases_url":"https://api.github.com/repos/NLog/NLog/releases{/id}","created_at":"2012-09-12T13:49:29Z","updated_at":"2015-11-25T12:35:02Z","pushed_at":"2015-11-26T03:48:31Z","git_url":"git://github.com/NLog/NLog.git","ssh_url":"git@github.com:NLog/NLog.git","clone_url":"https://github.com/NLog/NLog.git","svn_url":"https://github.com/NLog/NLog","homepage":"http://nlog-project.org","size":54803,"stargazers_count":1321,"watchers_count":1321,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":489,"mirror_url":null,"open_issues_count":109,"forks":489,"open_issues":109,"watchers":1321,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NLog/NLog/pulls/1064"},"html":{"href":"https://github.com/NLog/NLog/pull/1064"},"issue":{"href":"https://api.github.com/repos/NLog/NLog/issues/1064"},"comments":{"href":"https://api.github.com/repos/NLog/NLog/issues/1064/comments"},"review_comments":{"href":"https://api.github.com/repos/NLog/NLog/pulls/1064/comments"},"review_comment":{"href":"https://api.github.com/repos/NLog/NLog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NLog/NLog/pulls/1064/commits"},"statuses":{"href":"https://api.github.com/repos/NLog/NLog/statuses/11f2bede0eb2d97af25a005b506793551ecffbca"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":11,"deletions":1,"changed_files":1}}