{"action":"opened","number":44377,"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/44377","id":46097910,"html_url":"https://github.com/Homebrew/homebrew/pull/44377","diff_url":"https://github.com/Homebrew/homebrew/pull/44377.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/44377.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/44377","number":44377,"state":"open","locked":false,"title":"cache taps","user":{"login":"xu-cheng","id":3105373,"avatar_url":"https://avatars.githubusercontent.com/u/3105373?v=3","gravatar_id":"","url":"https://api.github.com/users/xu-cheng","html_url":"https://github.com/xu-cheng","followers_url":"https://api.github.com/users/xu-cheng/followers","following_url":"https://api.github.com/users/xu-cheng/following{/other_user}","gists_url":"https://api.github.com/users/xu-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/xu-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xu-cheng/subscriptions","organizations_url":"https://api.github.com/users/xu-cheng/orgs","repos_url":"https://api.github.com/users/xu-cheng/repos","events_url":"https://api.github.com/users/xu-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/xu-cheng/received_events","type":"User","site_admin":false},"body":"There are plenty of IO operations inside Tap object, and it will be more\r\nwhen implementing formula alias reverse look up(e.g. list all of alias\r\nnames for a formula). So let's cache them.\r\n\r\nSome benchmark:\r\n\r\n$ time brew info --json $(brew ruby -e 'puts Formula.tap_names') > /dev/null\r\nBefore: 6.40s user 2.42s system 96% cpu 9.134 total\r\nAfter: 4.75s user 0.77s system 97% cpu 5.637 total","created_at":"2015-09-27T08:50:06Z","updated_at":"2015-09-27T08:50:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/44377/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/44377/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/44377/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/3401feb1c35eecccf54107c159a6a65c33357d48","head":{"label":"xu-cheng:tap-cache","ref":"tap-cache","sha":"3401feb1c35eecccf54107c159a6a65c33357d48","user":{"login":"xu-cheng","id":3105373,"avatar_url":"https://avatars.githubusercontent.com/u/3105373?v=3","gravatar_id":"","url":"https://api.github.com/users/xu-cheng","html_url":"https://github.com/xu-cheng","followers_url":"https://api.github.com/users/xu-cheng/followers","following_url":"https://api.github.com/users/xu-cheng/following{/other_user}","gists_url":"https://api.github.com/users/xu-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/xu-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xu-cheng/subscriptions","organizations_url":"https://api.github.com/users/xu-cheng/orgs","repos_url":"https://api.github.com/users/xu-cheng/repos","events_url":"https://api.github.com/users/xu-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/xu-cheng/received_events","type":"User","site_admin":false},"repo":{"id":17541180,"name":"homebrew","full_name":"xu-cheng/homebrew","owner":{"login":"xu-cheng","id":3105373,"avatar_url":"https://avatars.githubusercontent.com/u/3105373?v=3","gravatar_id":"","url":"https://api.github.com/users/xu-cheng","html_url":"https://github.com/xu-cheng","followers_url":"https://api.github.com/users/xu-cheng/followers","following_url":"https://api.github.com/users/xu-cheng/following{/other_user}","gists_url":"https://api.github.com/users/xu-cheng/gists{/gist_id}","starred_url":"https://api.github.com/users/xu-cheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xu-cheng/subscriptions","organizations_url":"https://api.github.com/users/xu-cheng/orgs","repos_url":"https://api.github.com/users/xu-cheng/repos","events_url":"https://api.github.com/users/xu-cheng/events{/privacy}","received_events_url":"https://api.github.com/users/xu-cheng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xu-cheng/homebrew","description":":beer: The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/xu-cheng/homebrew","forks_url":"https://api.github.com/repos/xu-cheng/homebrew/forks","keys_url":"https://api.github.com/repos/xu-cheng/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xu-cheng/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xu-cheng/homebrew/teams","hooks_url":"https://api.github.com/repos/xu-cheng/homebrew/hooks","issue_events_url":"https://api.github.com/repos/xu-cheng/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/xu-cheng/homebrew/events","assignees_url":"https://api.github.com/repos/xu-cheng/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/xu-cheng/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/xu-cheng/homebrew/tags","blobs_url":"https://api.github.com/repos/xu-cheng/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xu-cheng/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xu-cheng/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/xu-cheng/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xu-cheng/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/xu-cheng/homebrew/languages","stargazers_url":"https://api.github.com/repos/xu-cheng/homebrew/stargazers","contributors_url":"https://api.github.com/repos/xu-cheng/homebrew/contributors","subscribers_url":"https://api.github.com/repos/xu-cheng/homebrew/subscribers","subscription_url":"https://api.github.com/repos/xu-cheng/homebrew/subscription","commits_url":"https://api.github.com/repos/xu-cheng/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/xu-cheng/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/xu-cheng/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/xu-cheng/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/xu-cheng/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/xu-cheng/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xu-cheng/homebrew/merges","archive_url":"https://api.github.com/repos/xu-cheng/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xu-cheng/homebrew/downloads","issues_url":"https://api.github.com/repos/xu-cheng/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/xu-cheng/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/xu-cheng/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/xu-cheng/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xu-cheng/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/xu-cheng/homebrew/releases{/id}","created_at":"2014-03-08T12:05:07Z","updated_at":"2015-05-08T08:19:34Z","pushed_at":"2015-09-27T08:49:53Z","git_url":"git://github.com/xu-cheng/homebrew.git","ssh_url":"git@github.com:xu-cheng/homebrew.git","clone_url":"https://github.com/xu-cheng/homebrew.git","svn_url":"https://github.com/xu-cheng/homebrew","homepage":"http://brew.sh","size":59936,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"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":"Homebrew:master","ref":"master","sha":"a591d8644dd99ae3ae045c365507c4162def4e78","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"repo":{"id":206084,"name":"homebrew","full_name":"Homebrew/homebrew","owner":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Homebrew/homebrew","description":":beer: The missing package manager for OS X.","fork":false,"url":"https://api.github.com/repos/Homebrew/homebrew","forks_url":"https://api.github.com/repos/Homebrew/homebrew/forks","keys_url":"https://api.github.com/repos/Homebrew/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/homebrew/teams","hooks_url":"https://api.github.com/repos/Homebrew/homebrew/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/homebrew/events","assignees_url":"https://api.github.com/repos/Homebrew/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/homebrew/tags","blobs_url":"https://api.github.com/repos/Homebrew/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/homebrew/languages","stargazers_url":"https://api.github.com/repos/Homebrew/homebrew/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/homebrew/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/homebrew/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/homebrew/subscription","commits_url":"https://api.github.com/repos/Homebrew/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/homebrew/merges","archive_url":"https://api.github.com/repos/Homebrew/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/homebrew/downloads","issues_url":"https://api.github.com/repos/Homebrew/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/homebrew/releases{/id}","created_at":"2009-05-20T19:38:37Z","updated_at":"2015-09-27T08:21:57Z","pushed_at":"2015-09-27T07:48:18Z","git_url":"git://github.com/Homebrew/homebrew.git","ssh_url":"git@github.com:Homebrew/homebrew.git","clone_url":"https://github.com/Homebrew/homebrew.git","svn_url":"https://github.com/Homebrew/homebrew","homepage":"http://brew.sh","size":1626004,"stargazers_count":25462,"watchers_count":25462,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":12839,"mirror_url":null,"open_issues_count":501,"forks":12839,"open_issues":501,"watchers":25462,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/44377"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/44377"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/44377"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/44377/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/44377/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/44377/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/3401feb1c35eecccf54107c159a6a65c33357d48"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":41,"deletions":21,"changed_files":12}}