{"action":"closed","number":124,"pull_request":{"url":"https://api.github.com/repos/rawdigits/wee-slack/pulls/124","id":50604360,"html_url":"https://github.com/rawdigits/wee-slack/pull/124","diff_url":"https://github.com/rawdigits/wee-slack/pull/124.diff","patch_url":"https://github.com/rawdigits/wee-slack/pull/124.patch","issue_url":"https://api.github.com/repos/rawdigits/wee-slack/issues/124","number":124,"state":"closed","locked":false,"title":"lots of refactoring for efficiency","user":{"login":"rawdigits","id":1096409,"avatar_url":"https://avatars.githubusercontent.com/u/1096409?v=3","gravatar_id":"","url":"https://api.github.com/users/rawdigits","html_url":"https://github.com/rawdigits","followers_url":"https://api.github.com/users/rawdigits/followers","following_url":"https://api.github.com/users/rawdigits/following{/other_user}","gists_url":"https://api.github.com/users/rawdigits/gists{/gist_id}","starred_url":"https://api.github.com/users/rawdigits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawdigits/subscriptions","organizations_url":"https://api.github.com/users/rawdigits/orgs","repos_url":"https://api.github.com/users/rawdigits/repos","events_url":"https://api.github.com/users/rawdigits/events{/privacy}","received_events_url":"https://api.github.com/users/rawdigits/received_events","type":"User","site_admin":false},"body":"This (mostly) stops using buffer_redraw(), which re-rendered the entire buffer by clearing it and then passing every item in channel.messages through the process_message function.\r\n\r\nWeechat uses posix seconds in message timestamps. Slack uses posix seconds + a unique index in case multiple messages come in the same second. In the case where there is only one message for a particular second, we just use hdata pointers to modify that line in the buffer. If we are unlucky and there are multiple messages at the same second that need modification, we fall back to redrawing the buffer.\r\n","created_at":"2015-11-13T04:48:50Z","updated_at":"2015-11-18T17:48:14Z","closed_at":"2015-11-18T17:48:14Z","merged_at":"2015-11-18T17:48:14Z","merge_commit_sha":"9709f8950f63d6d1186da04289573af4287c29ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rawdigits/wee-slack/pulls/124/commits","review_comments_url":"https://api.github.com/repos/rawdigits/wee-slack/pulls/124/comments","review_comment_url":"https://api.github.com/repos/rawdigits/wee-slack/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rawdigits/wee-slack/issues/124/comments","statuses_url":"https://api.github.com/repos/rawdigits/wee-slack/statuses/0e0a265e96d5607253306fc9576d711b384eeaca","head":{"label":"rawdigits:114_better_buffer_mod","ref":"114_better_buffer_mod","sha":"0e0a265e96d5607253306fc9576d711b384eeaca","user":{"login":"rawdigits","id":1096409,"avatar_url":"https://avatars.githubusercontent.com/u/1096409?v=3","gravatar_id":"","url":"https://api.github.com/users/rawdigits","html_url":"https://github.com/rawdigits","followers_url":"https://api.github.com/users/rawdigits/followers","following_url":"https://api.github.com/users/rawdigits/following{/other_user}","gists_url":"https://api.github.com/users/rawdigits/gists{/gist_id}","starred_url":"https://api.github.com/users/rawdigits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawdigits/subscriptions","organizations_url":"https://api.github.com/users/rawdigits/orgs","repos_url":"https://api.github.com/users/rawdigits/repos","events_url":"https://api.github.com/users/rawdigits/events{/privacy}","received_events_url":"https://api.github.com/users/rawdigits/received_events","type":"User","site_admin":false},"repo":{"id":18410202,"name":"wee-slack","full_name":"rawdigits/wee-slack","owner":{"login":"rawdigits","id":1096409,"avatar_url":"https://avatars.githubusercontent.com/u/1096409?v=3","gravatar_id":"","url":"https://api.github.com/users/rawdigits","html_url":"https://github.com/rawdigits","followers_url":"https://api.github.com/users/rawdigits/followers","following_url":"https://api.github.com/users/rawdigits/following{/other_user}","gists_url":"https://api.github.com/users/rawdigits/gists{/gist_id}","starred_url":"https://api.github.com/users/rawdigits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawdigits/subscriptions","organizations_url":"https://api.github.com/users/rawdigits/orgs","repos_url":"https://api.github.com/users/rawdigits/repos","events_url":"https://api.github.com/users/rawdigits/events{/privacy}","received_events_url":"https://api.github.com/users/rawdigits/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rawdigits/wee-slack","description":"A WeeChat plugin for Slack.com. Synchronizes read markers, provides typing notification, search, etc..","fork":false,"url":"https://api.github.com/repos/rawdigits/wee-slack","forks_url":"https://api.github.com/repos/rawdigits/wee-slack/forks","keys_url":"https://api.github.com/repos/rawdigits/wee-slack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rawdigits/wee-slack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rawdigits/wee-slack/teams","hooks_url":"https://api.github.com/repos/rawdigits/wee-slack/hooks","issue_events_url":"https://api.github.com/repos/rawdigits/wee-slack/issues/events{/number}","events_url":"https://api.github.com/repos/rawdigits/wee-slack/events","assignees_url":"https://api.github.com/repos/rawdigits/wee-slack/assignees{/user}","branches_url":"https://api.github.com/repos/rawdigits/wee-slack/branches{/branch}","tags_url":"https://api.github.com/repos/rawdigits/wee-slack/tags","blobs_url":"https://api.github.com/repos/rawdigits/wee-slack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rawdigits/wee-slack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rawdigits/wee-slack/git/refs{/sha}","trees_url":"https://api.github.com/repos/rawdigits/wee-slack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rawdigits/wee-slack/statuses/{sha}","languages_url":"https://api.github.com/repos/rawdigits/wee-slack/languages","stargazers_url":"https://api.github.com/repos/rawdigits/wee-slack/stargazers","contributors_url":"https://api.github.com/repos/rawdigits/wee-slack/contributors","subscribers_url":"https://api.github.com/repos/rawdigits/wee-slack/subscribers","subscription_url":"https://api.github.com/repos/rawdigits/wee-slack/subscription","commits_url":"https://api.github.com/repos/rawdigits/wee-slack/commits{/sha}","git_commits_url":"https://api.github.com/repos/rawdigits/wee-slack/git/commits{/sha}","comments_url":"https://api.github.com/repos/rawdigits/wee-slack/comments{/number}","issue_comment_url":"https://api.github.com/repos/rawdigits/wee-slack/issues/comments{/number}","contents_url":"https://api.github.com/repos/rawdigits/wee-slack/contents/{+path}","compare_url":"https://api.github.com/repos/rawdigits/wee-slack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rawdigits/wee-slack/merges","archive_url":"https://api.github.com/repos/rawdigits/wee-slack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rawdigits/wee-slack/downloads","issues_url":"https://api.github.com/repos/rawdigits/wee-slack/issues{/number}","pulls_url":"https://api.github.com/repos/rawdigits/wee-slack/pulls{/number}","milestones_url":"https://api.github.com/repos/rawdigits/wee-slack/milestones{/number}","notifications_url":"https://api.github.com/repos/rawdigits/wee-slack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rawdigits/wee-slack/labels{/name}","releases_url":"https://api.github.com/repos/rawdigits/wee-slack/releases{/id}","created_at":"2014-04-03T16:34:39Z","updated_at":"2015-11-18T00:11:03Z","pushed_at":"2015-11-18T17:48:14Z","git_url":"git://github.com/rawdigits/wee-slack.git","ssh_url":"git@github.com:rawdigits/wee-slack.git","clone_url":"https://github.com/rawdigits/wee-slack.git","svn_url":"https://github.com/rawdigits/wee-slack","homepage":"","size":653,"stargazers_count":211,"watchers_count":211,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":18,"forks":30,"open_issues":18,"watchers":211,"default_branch":"master"}},"base":{"label":"rawdigits:master","ref":"master","sha":"d6652aec633db0e5e5a78fb2f7d211b8b4e8c96a","user":{"login":"rawdigits","id":1096409,"avatar_url":"https://avatars.githubusercontent.com/u/1096409?v=3","gravatar_id":"","url":"https://api.github.com/users/rawdigits","html_url":"https://github.com/rawdigits","followers_url":"https://api.github.com/users/rawdigits/followers","following_url":"https://api.github.com/users/rawdigits/following{/other_user}","gists_url":"https://api.github.com/users/rawdigits/gists{/gist_id}","starred_url":"https://api.github.com/users/rawdigits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawdigits/subscriptions","organizations_url":"https://api.github.com/users/rawdigits/orgs","repos_url":"https://api.github.com/users/rawdigits/repos","events_url":"https://api.github.com/users/rawdigits/events{/privacy}","received_events_url":"https://api.github.com/users/rawdigits/received_events","type":"User","site_admin":false},"repo":{"id":18410202,"name":"wee-slack","full_name":"rawdigits/wee-slack","owner":{"login":"rawdigits","id":1096409,"avatar_url":"https://avatars.githubusercontent.com/u/1096409?v=3","gravatar_id":"","url":"https://api.github.com/users/rawdigits","html_url":"https://github.com/rawdigits","followers_url":"https://api.github.com/users/rawdigits/followers","following_url":"https://api.github.com/users/rawdigits/following{/other_user}","gists_url":"https://api.github.com/users/rawdigits/gists{/gist_id}","starred_url":"https://api.github.com/users/rawdigits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawdigits/subscriptions","organizations_url":"https://api.github.com/users/rawdigits/orgs","repos_url":"https://api.github.com/users/rawdigits/repos","events_url":"https://api.github.com/users/rawdigits/events{/privacy}","received_events_url":"https://api.github.com/users/rawdigits/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rawdigits/wee-slack","description":"A WeeChat plugin for Slack.com. Synchronizes read markers, provides typing notification, search, etc..","fork":false,"url":"https://api.github.com/repos/rawdigits/wee-slack","forks_url":"https://api.github.com/repos/rawdigits/wee-slack/forks","keys_url":"https://api.github.com/repos/rawdigits/wee-slack/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rawdigits/wee-slack/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rawdigits/wee-slack/teams","hooks_url":"https://api.github.com/repos/rawdigits/wee-slack/hooks","issue_events_url":"https://api.github.com/repos/rawdigits/wee-slack/issues/events{/number}","events_url":"https://api.github.com/repos/rawdigits/wee-slack/events","assignees_url":"https://api.github.com/repos/rawdigits/wee-slack/assignees{/user}","branches_url":"https://api.github.com/repos/rawdigits/wee-slack/branches{/branch}","tags_url":"https://api.github.com/repos/rawdigits/wee-slack/tags","blobs_url":"https://api.github.com/repos/rawdigits/wee-slack/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rawdigits/wee-slack/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rawdigits/wee-slack/git/refs{/sha}","trees_url":"https://api.github.com/repos/rawdigits/wee-slack/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rawdigits/wee-slack/statuses/{sha}","languages_url":"https://api.github.com/repos/rawdigits/wee-slack/languages","stargazers_url":"https://api.github.com/repos/rawdigits/wee-slack/stargazers","contributors_url":"https://api.github.com/repos/rawdigits/wee-slack/contributors","subscribers_url":"https://api.github.com/repos/rawdigits/wee-slack/subscribers","subscription_url":"https://api.github.com/repos/rawdigits/wee-slack/subscription","commits_url":"https://api.github.com/repos/rawdigits/wee-slack/commits{/sha}","git_commits_url":"https://api.github.com/repos/rawdigits/wee-slack/git/commits{/sha}","comments_url":"https://api.github.com/repos/rawdigits/wee-slack/comments{/number}","issue_comment_url":"https://api.github.com/repos/rawdigits/wee-slack/issues/comments{/number}","contents_url":"https://api.github.com/repos/rawdigits/wee-slack/contents/{+path}","compare_url":"https://api.github.com/repos/rawdigits/wee-slack/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rawdigits/wee-slack/merges","archive_url":"https://api.github.com/repos/rawdigits/wee-slack/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rawdigits/wee-slack/downloads","issues_url":"https://api.github.com/repos/rawdigits/wee-slack/issues{/number}","pulls_url":"https://api.github.com/repos/rawdigits/wee-slack/pulls{/number}","milestones_url":"https://api.github.com/repos/rawdigits/wee-slack/milestones{/number}","notifications_url":"https://api.github.com/repos/rawdigits/wee-slack/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rawdigits/wee-slack/labels{/name}","releases_url":"https://api.github.com/repos/rawdigits/wee-slack/releases{/id}","created_at":"2014-04-03T16:34:39Z","updated_at":"2015-11-18T00:11:03Z","pushed_at":"2015-11-18T17:48:14Z","git_url":"git://github.com/rawdigits/wee-slack.git","ssh_url":"git@github.com:rawdigits/wee-slack.git","clone_url":"https://github.com/rawdigits/wee-slack.git","svn_url":"https://github.com/rawdigits/wee-slack","homepage":"","size":653,"stargazers_count":211,"watchers_count":211,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":18,"forks":30,"open_issues":18,"watchers":211,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rawdigits/wee-slack/pulls/124"},"html":{"href":"https://github.com/rawdigits/wee-slack/pull/124"},"issue":{"href":"https://api.github.com/repos/rawdigits/wee-slack/issues/124"},"comments":{"href":"https://api.github.com/repos/rawdigits/wee-slack/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/rawdigits/wee-slack/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/rawdigits/wee-slack/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rawdigits/wee-slack/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/rawdigits/wee-slack/statuses/0e0a265e96d5607253306fc9576d711b384eeaca"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"rawdigits","id":1096409,"avatar_url":"https://avatars.githubusercontent.com/u/1096409?v=3","gravatar_id":"","url":"https://api.github.com/users/rawdigits","html_url":"https://github.com/rawdigits","followers_url":"https://api.github.com/users/rawdigits/followers","following_url":"https://api.github.com/users/rawdigits/following{/other_user}","gists_url":"https://api.github.com/users/rawdigits/gists{/gist_id}","starred_url":"https://api.github.com/users/rawdigits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rawdigits/subscriptions","organizations_url":"https://api.github.com/users/rawdigits/orgs","repos_url":"https://api.github.com/users/rawdigits/repos","events_url":"https://api.github.com/users/rawdigits/events{/privacy}","received_events_url":"https://api.github.com/users/rawdigits/received_events","type":"User","site_admin":false},"comments":4,"review_comments":14,"commits":35,"additions":258,"deletions":221,"changed_files":9}}