{"action":"created","issue":{"url":"https://api.github.com/repos/lettuce-io/lettuce-core/issues/916","repository_url":"https://api.github.com/repos/lettuce-io/lettuce-core","labels_url":"https://api.github.com/repos/lettuce-io/lettuce-core/issues/916/labels{/name}","comments_url":"https://api.github.com/repos/lettuce-io/lettuce-core/issues/916/comments","events_url":"https://api.github.com/repos/lettuce-io/lettuce-core/issues/916/events","html_url":"https://github.com/lettuce-io/lettuce-core/pull/916","id":378667485,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MzE1NTI0","number":916,"title":"use buffer usage ratio to optimize memory usage","user":{"login":"gavincook","id":5003372,"node_id":"MDQ6VXNlcjUwMDMzNzI=","avatar_url":"https://avatars3.githubusercontent.com/u/5003372?v=4","gravatar_id":"","url":"https://api.github.com/users/gavincook","html_url":"https://github.com/gavincook","followers_url":"https://api.github.com/users/gavincook/followers","following_url":"https://api.github.com/users/gavincook/following{/other_user}","gists_url":"https://api.github.com/users/gavincook/gists{/gist_id}","starred_url":"https://api.github.com/users/gavincook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavincook/subscriptions","organizations_url":"https://api.github.com/users/gavincook/orgs","repos_url":"https://api.github.com/users/gavincook/repos","events_url":"https://api.github.com/users/gavincook/events{/privacy}","received_events_url":"https://api.github.com/users/gavincook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-08T10:26:20Z","updated_at":"2018-11-20T07:45:49Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/lettuce-io/lettuce-core/pulls/916","html_url":"https://github.com/lettuce-io/lettuce-core/pull/916","diff_url":"https://github.com/lettuce-io/lettuce-core/pull/916.diff","patch_url":"https://github.com/lettuce-io/lettuce-core/pull/916.patch"},"body":"Add `bufferUsageRatio` option for `ClientOptions`, used to optimize memory usage. `bufferUsageRatio` option is a Integer which should greater than 0.\r\n\r\nWhen buffer usage reach `bufferUsageRatio / bufferUsageRatio + 1` of buffer capacity, will try to discard the read bytes to free buffer memory to more writting.\r\n\r\nDefault sets `bufferUsageRatio` as 3, means when buffer usage greater than 75%, will try to discard read bytes after decoding one whole reply or reaching end of buffer with partial reply."},"comment":{"url":"https://api.github.com/repos/lettuce-io/lettuce-core/issues/comments/440175146","html_url":"https://github.com/lettuce-io/lettuce-core/pull/916#issuecomment-440175146","issue_url":"https://api.github.com/repos/lettuce-io/lettuce-core/issues/916","id":440175146,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDE3NTE0Ng==","user":{"login":"gavincook","id":5003372,"node_id":"MDQ6VXNlcjUwMDMzNzI=","avatar_url":"https://avatars3.githubusercontent.com/u/5003372?v=4","gravatar_id":"","url":"https://api.github.com/users/gavincook","html_url":"https://github.com/gavincook","followers_url":"https://api.github.com/users/gavincook/followers","following_url":"https://api.github.com/users/gavincook/following{/other_user}","gists_url":"https://api.github.com/users/gavincook/gists{/gist_id}","starred_url":"https://api.github.com/users/gavincook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavincook/subscriptions","organizations_url":"https://api.github.com/users/gavincook/orgs","repos_url":"https://api.github.com/users/gavincook/repos","events_url":"https://api.github.com/users/gavincook/events{/privacy}","received_events_url":"https://api.github.com/users/gavincook/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T07:45:49Z","updated_at":"2018-11-20T07:45:49Z","author_association":"NONE","body":"I updated the PR, Please take a look again."}}
{"actor":{"display_login":"gavincook"}}