{"action":"created","comment":{"url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/comments/242649937","pull_request_review_id":186212829,"id":242649937,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjY0OTkzNw==","diff_hunk":"@@ -30,13 +30,16 @@ namespace Serilog.Sinks.ElkStreams\n     /// </summary>\n     public class ElkStreamsSink : PeriodicBatchingSink\n     {\n+        const int EventSize = 32 * 1024;\n         public const int DefaultBatchPostingLimit = 512;\n         public const int DefaultQueueSizeLimit = 65536;\n         public static readonly TimeSpan DefaultPeriod = TimeSpan.FromSeconds(1);\n \n         readonly HttpClient _httpClient;\n         readonly string _indexTemplate;\n         readonly ElkStreamsJsonFormatter _formatter;\n+        readonly MemoryStream _eventsStream;","path":"src/Serilog.Sinks.ElkStreams/Sinks/ElkStreams/ElkStreamsSink.cs","position":12,"original_position":12,"commit_id":"67a975be0d93d97da9ba598321680f15417519de","original_commit_id":"67a975be0d93d97da9ba598321680f15417519de","user":{"login":"borovskyav","id":7278994,"node_id":"MDQ6VXNlcjcyNzg5OTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/7278994?v=4","gravatar_id":"","url":"https://api.github.com/users/borovskyav","html_url":"https://github.com/borovskyav","followers_url":"https://api.github.com/users/borovskyav/followers","following_url":"https://api.github.com/users/borovskyav/following{/other_user}","gists_url":"https://api.github.com/users/borovskyav/gists{/gist_id}","starred_url":"https://api.github.com/users/borovskyav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borovskyav/subscriptions","organizations_url":"https://api.github.com/users/borovskyav/orgs","repos_url":"https://api.github.com/users/borovskyav/repos","events_url":"https://api.github.com/users/borovskyav/events{/privacy}","received_events_url":"https://api.github.com/users/borovskyav/received_events","type":"User","site_admin":false},"body":"Понял, вопросов нет =)","created_at":"2018-12-18T18:21:43Z","updated_at":"2018-12-18T18:21:43Z","html_url":"https://github.com/skbkontur/serilog-sinks-elkstreams/pull/5#discussion_r242649937","pull_request_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/comments/242649937"},"html":{"href":"https://github.com/skbkontur/serilog-sinks-elkstreams/pull/5#discussion_r242649937"},"pull_request":{"href":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/5"}},"in_reply_to_id":242624275},"pull_request":{"url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/5","id":239227225,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5MjI3MjI1","html_url":"https://github.com/skbkontur/serilog-sinks-elkstreams/pull/5","diff_url":"https://github.com/skbkontur/serilog-sinks-elkstreams/pull/5.diff","patch_url":"https://github.com/skbkontur/serilog-sinks-elkstreams/pull/5.patch","issue_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/issues/5","number":5,"state":"open","locked":false,"title":"Reduce strings allocations and enum boxing","user":{"login":"Pliner","id":664889,"node_id":"MDQ6VXNlcjY2NDg4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/664889?v=4","gravatar_id":"","url":"https://api.github.com/users/Pliner","html_url":"https://github.com/Pliner","followers_url":"https://api.github.com/users/Pliner/followers","following_url":"https://api.github.com/users/Pliner/following{/other_user}","gists_url":"https://api.github.com/users/Pliner/gists{/gist_id}","starred_url":"https://api.github.com/users/Pliner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pliner/subscriptions","organizations_url":"https://api.github.com/users/Pliner/orgs","repos_url":"https://api.github.com/users/Pliner/repos","events_url":"https://api.github.com/users/Pliner/events{/privacy}","received_events_url":"https://api.github.com/users/Pliner/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-17T17:34:34Z","updated_at":"2018-12-18T18:21:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a06a883b049743c5ff46d3ec3b602bc6b14e4b7a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/5/commits","review_comments_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/5/comments","review_comment_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/comments{/number}","comments_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/issues/5/comments","statuses_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/statuses/67a975be0d93d97da9ba598321680f15417519de","head":{"label":"skbkontur:optimizations","ref":"optimizations","sha":"67a975be0d93d97da9ba598321680f15417519de","user":{"login":"skbkontur","id":5087073,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwODcwNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5087073?v=4","gravatar_id":"","url":"https://api.github.com/users/skbkontur","html_url":"https://github.com/skbkontur","followers_url":"https://api.github.com/users/skbkontur/followers","following_url":"https://api.github.com/users/skbkontur/following{/other_user}","gists_url":"https://api.github.com/users/skbkontur/gists{/gist_id}","starred_url":"https://api.github.com/users/skbkontur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skbkontur/subscriptions","organizations_url":"https://api.github.com/users/skbkontur/orgs","repos_url":"https://api.github.com/users/skbkontur/repos","events_url":"https://api.github.com/users/skbkontur/events{/privacy}","received_events_url":"https://api.github.com/users/skbkontur/received_events","type":"Organization","site_admin":false},"repo":{"id":79580842,"node_id":"MDEwOlJlcG9zaXRvcnk3OTU4MDg0Mg==","name":"serilog-sinks-elkstreams","full_name":"skbkontur/serilog-sinks-elkstreams","private":false,"owner":{"login":"skbkontur","id":5087073,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwODcwNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5087073?v=4","gravatar_id":"","url":"https://api.github.com/users/skbkontur","html_url":"https://github.com/skbkontur","followers_url":"https://api.github.com/users/skbkontur/followers","following_url":"https://api.github.com/users/skbkontur/following{/other_user}","gists_url":"https://api.github.com/users/skbkontur/gists{/gist_id}","starred_url":"https://api.github.com/users/skbkontur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skbkontur/subscriptions","organizations_url":"https://api.github.com/users/skbkontur/orgs","repos_url":"https://api.github.com/users/skbkontur/repos","events_url":"https://api.github.com/users/skbkontur/events{/privacy}","received_events_url":"https://api.github.com/users/skbkontur/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/skbkontur/serilog-sinks-elkstreams","description":null,"fork":false,"url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams","forks_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/forks","keys_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/teams","hooks_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/hooks","issue_events_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/issues/events{/number}","events_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/events","assignees_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/assignees{/user}","branches_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/branches{/branch}","tags_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/tags","blobs_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/git/refs{/sha}","trees_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/statuses/{sha}","languages_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/languages","stargazers_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/stargazers","contributors_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/contributors","subscribers_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/subscribers","subscription_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/subscription","commits_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/commits{/sha}","git_commits_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/git/commits{/sha}","comments_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/comments{/number}","issue_comment_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/issues/comments{/number}","contents_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/contents/{+path}","compare_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/merges","archive_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/downloads","issues_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/issues{/number}","pulls_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls{/number}","milestones_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/milestones{/number}","notifications_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/labels{/name}","releases_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/releases{/id}","deployments_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/deployments","created_at":"2017-01-20T17:28:03Z","updated_at":"2018-07-12T10:37:56Z","pushed_at":"2018-12-18T16:31:11Z","git_url":"git://github.com/skbkontur/serilog-sinks-elkstreams.git","ssh_url":"git@github.com:skbkontur/serilog-sinks-elkstreams.git","clone_url":"https://github.com/skbkontur/serilog-sinks-elkstreams.git","svn_url":"https://github.com/skbkontur/serilog-sinks-elkstreams","homepage":null,"size":27,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"skbkontur:master","ref":"master","sha":"a4d74c6750df74ef0a44155cbb50b2b6a332a886","user":{"login":"skbkontur","id":5087073,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwODcwNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5087073?v=4","gravatar_id":"","url":"https://api.github.com/users/skbkontur","html_url":"https://github.com/skbkontur","followers_url":"https://api.github.com/users/skbkontur/followers","following_url":"https://api.github.com/users/skbkontur/following{/other_user}","gists_url":"https://api.github.com/users/skbkontur/gists{/gist_id}","starred_url":"https://api.github.com/users/skbkontur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skbkontur/subscriptions","organizations_url":"https://api.github.com/users/skbkontur/orgs","repos_url":"https://api.github.com/users/skbkontur/repos","events_url":"https://api.github.com/users/skbkontur/events{/privacy}","received_events_url":"https://api.github.com/users/skbkontur/received_events","type":"Organization","site_admin":false},"repo":{"id":79580842,"node_id":"MDEwOlJlcG9zaXRvcnk3OTU4MDg0Mg==","name":"serilog-sinks-elkstreams","full_name":"skbkontur/serilog-sinks-elkstreams","private":false,"owner":{"login":"skbkontur","id":5087073,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUwODcwNzM=","avatar_url":"https://avatars0.githubusercontent.com/u/5087073?v=4","gravatar_id":"","url":"https://api.github.com/users/skbkontur","html_url":"https://github.com/skbkontur","followers_url":"https://api.github.com/users/skbkontur/followers","following_url":"https://api.github.com/users/skbkontur/following{/other_user}","gists_url":"https://api.github.com/users/skbkontur/gists{/gist_id}","starred_url":"https://api.github.com/users/skbkontur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skbkontur/subscriptions","organizations_url":"https://api.github.com/users/skbkontur/orgs","repos_url":"https://api.github.com/users/skbkontur/repos","events_url":"https://api.github.com/users/skbkontur/events{/privacy}","received_events_url":"https://api.github.com/users/skbkontur/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/skbkontur/serilog-sinks-elkstreams","description":null,"fork":false,"url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams","forks_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/forks","keys_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/teams","hooks_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/hooks","issue_events_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/issues/events{/number}","events_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/events","assignees_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/assignees{/user}","branches_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/branches{/branch}","tags_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/tags","blobs_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/git/refs{/sha}","trees_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/statuses/{sha}","languages_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/languages","stargazers_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/stargazers","contributors_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/contributors","subscribers_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/subscribers","subscription_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/subscription","commits_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/commits{/sha}","git_commits_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/git/commits{/sha}","comments_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/comments{/number}","issue_comment_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/issues/comments{/number}","contents_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/contents/{+path}","compare_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/merges","archive_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/downloads","issues_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/issues{/number}","pulls_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls{/number}","milestones_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/milestones{/number}","notifications_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/labels{/name}","releases_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/releases{/id}","deployments_url":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/deployments","created_at":"2017-01-20T17:28:03Z","updated_at":"2018-07-12T10:37:56Z","pushed_at":"2018-12-18T16:31:11Z","git_url":"git://github.com/skbkontur/serilog-sinks-elkstreams.git","ssh_url":"git@github.com:skbkontur/serilog-sinks-elkstreams.git","clone_url":"https://github.com/skbkontur/serilog-sinks-elkstreams.git","svn_url":"https://github.com/skbkontur/serilog-sinks-elkstreams","homepage":null,"size":27,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/5"},"html":{"href":"https://github.com/skbkontur/serilog-sinks-elkstreams/pull/5"},"issue":{"href":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/issues/5"},"comments":{"href":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/skbkontur/serilog-sinks-elkstreams/statuses/67a975be0d93d97da9ba598321680f15417519de"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"borovskyav"}}