{"action":"closed","number":222,"pull_request":{"url":"https://api.github.com/repos/elixir-lang/vim-elixir/pulls/222","id":92638972,"html_url":"https://github.com/elixir-lang/vim-elixir/pull/222","diff_url":"https://github.com/elixir-lang/vim-elixir/pull/222.diff","patch_url":"https://github.com/elixir-lang/vim-elixir/pull/222.patch","issue_url":"https://api.github.com/repos/elixir-lang/vim-elixir/issues/222","number":222,"state":"closed","locked":false,"title":"Improve indent performance","user":{"login":"gasparch","id":942380,"avatar_url":"https://avatars.githubusercontent.com/u/942380?v=3","gravatar_id":"","url":"https://api.github.com/users/gasparch","html_url":"https://github.com/gasparch","followers_url":"https://api.github.com/users/gasparch/followers","following_url":"https://api.github.com/users/gasparch/following{/other_user}","gists_url":"https://api.github.com/users/gasparch/gists{/gist_id}","starred_url":"https://api.github.com/users/gasparch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasparch/subscriptions","organizations_url":"https://api.github.com/users/gasparch/orgs","repos_url":"https://api.github.com/users/gasparch/repos","events_url":"https://api.github.com/users/gasparch/events{/privacy}","received_events_url":"https://api.github.com/users/gasparch/received_events","type":"User","site_admin":false},"body":"avoid doing extra work in indent function.\r\n\r\n`elixir#util#is_indentable_at` guaranteed will return `true` if match is not found, so detect and do it as fast as we can. \r\n\r\nBy calling `elixir#util#is_indentable_match` two unnecessary calls to getline() are made on each `elixir#util#count_indentable_symbol_diff` invocation, which is called at least 3 times for each line for `()[]{}` pairs. Use already fetched line content.\r\n\r\n","created_at":"2016-11-07T18:36:18Z","updated_at":"2016-11-15T17:27:35Z","closed_at":"2016-11-15T17:27:35Z","merged_at":"2016-11-15T17:27:35Z","merge_commit_sha":"4854f8ee04ad80b7f38d329d3710878fcea05a85","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/elixir-lang/vim-elixir/pulls/222/commits","review_comments_url":"https://api.github.com/repos/elixir-lang/vim-elixir/pulls/222/comments","review_comment_url":"https://api.github.com/repos/elixir-lang/vim-elixir/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elixir-lang/vim-elixir/issues/222/comments","statuses_url":"https://api.github.com/repos/elixir-lang/vim-elixir/statuses/b2c7846bc68029681635e2e5d14333271140074f","head":{"label":"gasparch:improve_indent_performance","ref":"improve_indent_performance","sha":"b2c7846bc68029681635e2e5d14333271140074f","user":{"login":"gasparch","id":942380,"avatar_url":"https://avatars.githubusercontent.com/u/942380?v=3","gravatar_id":"","url":"https://api.github.com/users/gasparch","html_url":"https://github.com/gasparch","followers_url":"https://api.github.com/users/gasparch/followers","following_url":"https://api.github.com/users/gasparch/following{/other_user}","gists_url":"https://api.github.com/users/gasparch/gists{/gist_id}","starred_url":"https://api.github.com/users/gasparch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasparch/subscriptions","organizations_url":"https://api.github.com/users/gasparch/orgs","repos_url":"https://api.github.com/users/gasparch/repos","events_url":"https://api.github.com/users/gasparch/events{/privacy}","received_events_url":"https://api.github.com/users/gasparch/received_events","type":"User","site_admin":false},"repo":{"id":73096286,"name":"vim-elixir","full_name":"gasparch/vim-elixir","owner":{"login":"gasparch","id":942380,"avatar_url":"https://avatars.githubusercontent.com/u/942380?v=3","gravatar_id":"","url":"https://api.github.com/users/gasparch","html_url":"https://github.com/gasparch","followers_url":"https://api.github.com/users/gasparch/followers","following_url":"https://api.github.com/users/gasparch/following{/other_user}","gists_url":"https://api.github.com/users/gasparch/gists{/gist_id}","starred_url":"https://api.github.com/users/gasparch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasparch/subscriptions","organizations_url":"https://api.github.com/users/gasparch/orgs","repos_url":"https://api.github.com/users/gasparch/repos","events_url":"https://api.github.com/users/gasparch/events{/privacy}","received_events_url":"https://api.github.com/users/gasparch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gasparch/vim-elixir","description":"Vim configuration files for Elixir","fork":true,"url":"https://api.github.com/repos/gasparch/vim-elixir","forks_url":"https://api.github.com/repos/gasparch/vim-elixir/forks","keys_url":"https://api.github.com/repos/gasparch/vim-elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gasparch/vim-elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gasparch/vim-elixir/teams","hooks_url":"https://api.github.com/repos/gasparch/vim-elixir/hooks","issue_events_url":"https://api.github.com/repos/gasparch/vim-elixir/issues/events{/number}","events_url":"https://api.github.com/repos/gasparch/vim-elixir/events","assignees_url":"https://api.github.com/repos/gasparch/vim-elixir/assignees{/user}","branches_url":"https://api.github.com/repos/gasparch/vim-elixir/branches{/branch}","tags_url":"https://api.github.com/repos/gasparch/vim-elixir/tags","blobs_url":"https://api.github.com/repos/gasparch/vim-elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gasparch/vim-elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gasparch/vim-elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/gasparch/vim-elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gasparch/vim-elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/gasparch/vim-elixir/languages","stargazers_url":"https://api.github.com/repos/gasparch/vim-elixir/stargazers","contributors_url":"https://api.github.com/repos/gasparch/vim-elixir/contributors","subscribers_url":"https://api.github.com/repos/gasparch/vim-elixir/subscribers","subscription_url":"https://api.github.com/repos/gasparch/vim-elixir/subscription","commits_url":"https://api.github.com/repos/gasparch/vim-elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/gasparch/vim-elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/gasparch/vim-elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/gasparch/vim-elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/gasparch/vim-elixir/contents/{+path}","compare_url":"https://api.github.com/repos/gasparch/vim-elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gasparch/vim-elixir/merges","archive_url":"https://api.github.com/repos/gasparch/vim-elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gasparch/vim-elixir/downloads","issues_url":"https://api.github.com/repos/gasparch/vim-elixir/issues{/number}","pulls_url":"https://api.github.com/repos/gasparch/vim-elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/gasparch/vim-elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/gasparch/vim-elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gasparch/vim-elixir/labels{/name}","releases_url":"https://api.github.com/repos/gasparch/vim-elixir/releases{/id}","deployments_url":"https://api.github.com/repos/gasparch/vim-elixir/deployments","created_at":"2016-11-07T16:06:08Z","updated_at":"2016-11-07T16:06:09Z","pushed_at":"2016-11-15T07:28:07Z","git_url":"git://github.com/gasparch/vim-elixir.git","ssh_url":"git@github.com:gasparch/vim-elixir.git","clone_url":"https://github.com/gasparch/vim-elixir.git","svn_url":"https://github.com/gasparch/vim-elixir","homepage":"http://elixir-lang.org/","size":259,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"elixir-lang:master","ref":"master","sha":"e38d63ce5bf82d7cb807053fe8548fee34b84863","user":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":3642943,"name":"vim-elixir","full_name":"elixir-lang/vim-elixir","owner":{"login":"elixir-lang","id":1481354,"avatar_url":"https://avatars.githubusercontent.com/u/1481354?v=3","gravatar_id":"","url":"https://api.github.com/users/elixir-lang","html_url":"https://github.com/elixir-lang","followers_url":"https://api.github.com/users/elixir-lang/followers","following_url":"https://api.github.com/users/elixir-lang/following{/other_user}","gists_url":"https://api.github.com/users/elixir-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/elixir-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elixir-lang/subscriptions","organizations_url":"https://api.github.com/users/elixir-lang/orgs","repos_url":"https://api.github.com/users/elixir-lang/repos","events_url":"https://api.github.com/users/elixir-lang/events{/privacy}","received_events_url":"https://api.github.com/users/elixir-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elixir-lang/vim-elixir","description":"Vim configuration files for Elixir","fork":false,"url":"https://api.github.com/repos/elixir-lang/vim-elixir","forks_url":"https://api.github.com/repos/elixir-lang/vim-elixir/forks","keys_url":"https://api.github.com/repos/elixir-lang/vim-elixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elixir-lang/vim-elixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elixir-lang/vim-elixir/teams","hooks_url":"https://api.github.com/repos/elixir-lang/vim-elixir/hooks","issue_events_url":"https://api.github.com/repos/elixir-lang/vim-elixir/issues/events{/number}","events_url":"https://api.github.com/repos/elixir-lang/vim-elixir/events","assignees_url":"https://api.github.com/repos/elixir-lang/vim-elixir/assignees{/user}","branches_url":"https://api.github.com/repos/elixir-lang/vim-elixir/branches{/branch}","tags_url":"https://api.github.com/repos/elixir-lang/vim-elixir/tags","blobs_url":"https://api.github.com/repos/elixir-lang/vim-elixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elixir-lang/vim-elixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elixir-lang/vim-elixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/elixir-lang/vim-elixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elixir-lang/vim-elixir/statuses/{sha}","languages_url":"https://api.github.com/repos/elixir-lang/vim-elixir/languages","stargazers_url":"https://api.github.com/repos/elixir-lang/vim-elixir/stargazers","contributors_url":"https://api.github.com/repos/elixir-lang/vim-elixir/contributors","subscribers_url":"https://api.github.com/repos/elixir-lang/vim-elixir/subscribers","subscription_url":"https://api.github.com/repos/elixir-lang/vim-elixir/subscription","commits_url":"https://api.github.com/repos/elixir-lang/vim-elixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/elixir-lang/vim-elixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/elixir-lang/vim-elixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/elixir-lang/vim-elixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/elixir-lang/vim-elixir/contents/{+path}","compare_url":"https://api.github.com/repos/elixir-lang/vim-elixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elixir-lang/vim-elixir/merges","archive_url":"https://api.github.com/repos/elixir-lang/vim-elixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elixir-lang/vim-elixir/downloads","issues_url":"https://api.github.com/repos/elixir-lang/vim-elixir/issues{/number}","pulls_url":"https://api.github.com/repos/elixir-lang/vim-elixir/pulls{/number}","milestones_url":"https://api.github.com/repos/elixir-lang/vim-elixir/milestones{/number}","notifications_url":"https://api.github.com/repos/elixir-lang/vim-elixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elixir-lang/vim-elixir/labels{/name}","releases_url":"https://api.github.com/repos/elixir-lang/vim-elixir/releases{/id}","deployments_url":"https://api.github.com/repos/elixir-lang/vim-elixir/deployments","created_at":"2012-03-06T21:36:59Z","updated_at":"2016-11-13T15:21:14Z","pushed_at":"2016-11-15T17:27:35Z","git_url":"git://github.com/elixir-lang/vim-elixir.git","ssh_url":"git@github.com:elixir-lang/vim-elixir.git","clone_url":"https://github.com/elixir-lang/vim-elixir.git","svn_url":"https://github.com/elixir-lang/vim-elixir","homepage":"http://elixir-lang.org/","size":3367,"stargazers_count":609,"watchers_count":609,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":79,"mirror_url":null,"open_issues_count":15,"forks":79,"open_issues":15,"watchers":609,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elixir-lang/vim-elixir/pulls/222"},"html":{"href":"https://github.com/elixir-lang/vim-elixir/pull/222"},"issue":{"href":"https://api.github.com/repos/elixir-lang/vim-elixir/issues/222"},"comments":{"href":"https://api.github.com/repos/elixir-lang/vim-elixir/issues/222/comments"},"review_comments":{"href":"https://api.github.com/repos/elixir-lang/vim-elixir/pulls/222/comments"},"review_comment":{"href":"https://api.github.com/repos/elixir-lang/vim-elixir/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elixir-lang/vim-elixir/pulls/222/commits"},"statuses":{"href":"https://api.github.com/repos/elixir-lang/vim-elixir/statuses/b2c7846bc68029681635e2e5d14333271140074f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kassio","id":120483,"avatar_url":"https://avatars.githubusercontent.com/u/120483?v=3","gravatar_id":"","url":"https://api.github.com/users/kassio","html_url":"https://github.com/kassio","followers_url":"https://api.github.com/users/kassio/followers","following_url":"https://api.github.com/users/kassio/following{/other_user}","gists_url":"https://api.github.com/users/kassio/gists{/gist_id}","starred_url":"https://api.github.com/users/kassio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kassio/subscriptions","organizations_url":"https://api.github.com/users/kassio/orgs","repos_url":"https://api.github.com/users/kassio/repos","events_url":"https://api.github.com/users/kassio/events{/privacy}","received_events_url":"https://api.github.com/users/kassio/received_events","type":"User","site_admin":false},"comments":2,"review_comments":3,"commits":1,"additions":6,"deletions":3,"changed_files":1}}
{"actor":{"display_login":"kassio"}}