{"action":"opened","number":2109,"pull_request":{"url":"https://api.github.com/repos/bower/bower/pulls/2109","id":53949425,"html_url":"https://github.com/bower/bower/pull/2109","diff_url":"https://github.com/bower/bower/pull/2109.diff","patch_url":"https://github.com/bower/bower/pull/2109.patch","issue_url":"https://api.github.com/repos/bower/bower/issues/2109","number":2109,"state":"open","locked":false,"title":"Cache data for already traversed packages","user":{"login":"DrRataplan","id":5022244,"avatar_url":"https://avatars.githubusercontent.com/u/5022244?v=3","gravatar_id":"","url":"https://api.github.com/users/DrRataplan","html_url":"https://github.com/DrRataplan","followers_url":"https://api.github.com/users/DrRataplan/followers","following_url":"https://api.github.com/users/DrRataplan/following{/other_user}","gists_url":"https://api.github.com/users/DrRataplan/gists{/gist_id}","starred_url":"https://api.github.com/users/DrRataplan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrRataplan/subscriptions","organizations_url":"https://api.github.com/users/DrRataplan/orgs","repos_url":"https://api.github.com/users/DrRataplan/repos","events_url":"https://api.github.com/users/DrRataplan/events{/privacy}","received_events_url":"https://api.github.com/users/DrRataplan/received_events","type":"User","site_admin":false},"body":"This improves the performance of bower install by making the amount of data being traversed proportional to the amount of unique packages installed, instead of all nodes in the dependency tree.\r\n\r\nWe at FontoXML use bower as our dependency manager. Because we use a very modular architecture (150+ packages, with loads of inter-dependencies), we ran into consistent out of memory issues in Bower.\r\n\r\nWe have narrowed it doen to the Manager#toData function, which is ran twice. This function recurses to summarize the dependencies of installed packages. It does not hold duplicate dependencies into account.\r\n\r\nBecause dependencies should be unique by name (the upperDeps check uses this), we should not have to recurse for packages we have already seen in this full outer call of Manager#toData.","created_at":"2015-12-17T08:57:59Z","updated_at":"2015-12-17T08:57:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bower/bower/pulls/2109/commits","review_comments_url":"https://api.github.com/repos/bower/bower/pulls/2109/comments","review_comment_url":"https://api.github.com/repos/bower/bower/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bower/bower/issues/2109/comments","statuses_url":"https://api.github.com/repos/bower/bower/statuses/8fecde140a379fc260cf010141b33ddf37382c03","head":{"label":"DrRataplan:master","ref":"master","sha":"8fecde140a379fc260cf010141b33ddf37382c03","user":{"login":"DrRataplan","id":5022244,"avatar_url":"https://avatars.githubusercontent.com/u/5022244?v=3","gravatar_id":"","url":"https://api.github.com/users/DrRataplan","html_url":"https://github.com/DrRataplan","followers_url":"https://api.github.com/users/DrRataplan/followers","following_url":"https://api.github.com/users/DrRataplan/following{/other_user}","gists_url":"https://api.github.com/users/DrRataplan/gists{/gist_id}","starred_url":"https://api.github.com/users/DrRataplan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrRataplan/subscriptions","organizations_url":"https://api.github.com/users/DrRataplan/orgs","repos_url":"https://api.github.com/users/DrRataplan/repos","events_url":"https://api.github.com/users/DrRataplan/events{/privacy}","received_events_url":"https://api.github.com/users/DrRataplan/received_events","type":"User","site_admin":false},"repo":{"id":48118999,"name":"bower","full_name":"DrRataplan/bower","owner":{"login":"DrRataplan","id":5022244,"avatar_url":"https://avatars.githubusercontent.com/u/5022244?v=3","gravatar_id":"","url":"https://api.github.com/users/DrRataplan","html_url":"https://github.com/DrRataplan","followers_url":"https://api.github.com/users/DrRataplan/followers","following_url":"https://api.github.com/users/DrRataplan/following{/other_user}","gists_url":"https://api.github.com/users/DrRataplan/gists{/gist_id}","starred_url":"https://api.github.com/users/DrRataplan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrRataplan/subscriptions","organizations_url":"https://api.github.com/users/DrRataplan/orgs","repos_url":"https://api.github.com/users/DrRataplan/repos","events_url":"https://api.github.com/users/DrRataplan/events{/privacy}","received_events_url":"https://api.github.com/users/DrRataplan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DrRataplan/bower","description":"A package manager for the web","fork":true,"url":"https://api.github.com/repos/DrRataplan/bower","forks_url":"https://api.github.com/repos/DrRataplan/bower/forks","keys_url":"https://api.github.com/repos/DrRataplan/bower/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DrRataplan/bower/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DrRataplan/bower/teams","hooks_url":"https://api.github.com/repos/DrRataplan/bower/hooks","issue_events_url":"https://api.github.com/repos/DrRataplan/bower/issues/events{/number}","events_url":"https://api.github.com/repos/DrRataplan/bower/events","assignees_url":"https://api.github.com/repos/DrRataplan/bower/assignees{/user}","branches_url":"https://api.github.com/repos/DrRataplan/bower/branches{/branch}","tags_url":"https://api.github.com/repos/DrRataplan/bower/tags","blobs_url":"https://api.github.com/repos/DrRataplan/bower/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DrRataplan/bower/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DrRataplan/bower/git/refs{/sha}","trees_url":"https://api.github.com/repos/DrRataplan/bower/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DrRataplan/bower/statuses/{sha}","languages_url":"https://api.github.com/repos/DrRataplan/bower/languages","stargazers_url":"https://api.github.com/repos/DrRataplan/bower/stargazers","contributors_url":"https://api.github.com/repos/DrRataplan/bower/contributors","subscribers_url":"https://api.github.com/repos/DrRataplan/bower/subscribers","subscription_url":"https://api.github.com/repos/DrRataplan/bower/subscription","commits_url":"https://api.github.com/repos/DrRataplan/bower/commits{/sha}","git_commits_url":"https://api.github.com/repos/DrRataplan/bower/git/commits{/sha}","comments_url":"https://api.github.com/repos/DrRataplan/bower/comments{/number}","issue_comment_url":"https://api.github.com/repos/DrRataplan/bower/issues/comments{/number}","contents_url":"https://api.github.com/repos/DrRataplan/bower/contents/{+path}","compare_url":"https://api.github.com/repos/DrRataplan/bower/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DrRataplan/bower/merges","archive_url":"https://api.github.com/repos/DrRataplan/bower/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DrRataplan/bower/downloads","issues_url":"https://api.github.com/repos/DrRataplan/bower/issues{/number}","pulls_url":"https://api.github.com/repos/DrRataplan/bower/pulls{/number}","milestones_url":"https://api.github.com/repos/DrRataplan/bower/milestones{/number}","notifications_url":"https://api.github.com/repos/DrRataplan/bower/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DrRataplan/bower/labels{/name}","releases_url":"https://api.github.com/repos/DrRataplan/bower/releases{/id}","created_at":"2015-12-16T15:36:00Z","updated_at":"2015-12-16T15:36:01Z","pushed_at":"2015-12-17T08:54:46Z","git_url":"git://github.com/DrRataplan/bower.git","ssh_url":"git@github.com:DrRataplan/bower.git","clone_url":"https://github.com/DrRataplan/bower.git","svn_url":"https://github.com/DrRataplan/bower","homepage":"bower.io","size":3633,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"bower:master","ref":"master","sha":"e2adbc37f1155c04fe88499a0abcf899e55ba266","user":{"login":"bower","id":3709251,"avatar_url":"https://avatars.githubusercontent.com/u/3709251?v=3","gravatar_id":"","url":"https://api.github.com/users/bower","html_url":"https://github.com/bower","followers_url":"https://api.github.com/users/bower/followers","following_url":"https://api.github.com/users/bower/following{/other_user}","gists_url":"https://api.github.com/users/bower/gists{/gist_id}","starred_url":"https://api.github.com/users/bower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bower/subscriptions","organizations_url":"https://api.github.com/users/bower/orgs","repos_url":"https://api.github.com/users/bower/repos","events_url":"https://api.github.com/users/bower/events{/privacy}","received_events_url":"https://api.github.com/users/bower/received_events","type":"Organization","site_admin":false},"repo":{"id":5710341,"name":"bower","full_name":"bower/bower","owner":{"login":"bower","id":3709251,"avatar_url":"https://avatars.githubusercontent.com/u/3709251?v=3","gravatar_id":"","url":"https://api.github.com/users/bower","html_url":"https://github.com/bower","followers_url":"https://api.github.com/users/bower/followers","following_url":"https://api.github.com/users/bower/following{/other_user}","gists_url":"https://api.github.com/users/bower/gists{/gist_id}","starred_url":"https://api.github.com/users/bower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bower/subscriptions","organizations_url":"https://api.github.com/users/bower/orgs","repos_url":"https://api.github.com/users/bower/repos","events_url":"https://api.github.com/users/bower/events{/privacy}","received_events_url":"https://api.github.com/users/bower/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bower/bower","description":"A package manager for the web","fork":false,"url":"https://api.github.com/repos/bower/bower","forks_url":"https://api.github.com/repos/bower/bower/forks","keys_url":"https://api.github.com/repos/bower/bower/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bower/bower/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bower/bower/teams","hooks_url":"https://api.github.com/repos/bower/bower/hooks","issue_events_url":"https://api.github.com/repos/bower/bower/issues/events{/number}","events_url":"https://api.github.com/repos/bower/bower/events","assignees_url":"https://api.github.com/repos/bower/bower/assignees{/user}","branches_url":"https://api.github.com/repos/bower/bower/branches{/branch}","tags_url":"https://api.github.com/repos/bower/bower/tags","blobs_url":"https://api.github.com/repos/bower/bower/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bower/bower/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bower/bower/git/refs{/sha}","trees_url":"https://api.github.com/repos/bower/bower/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bower/bower/statuses/{sha}","languages_url":"https://api.github.com/repos/bower/bower/languages","stargazers_url":"https://api.github.com/repos/bower/bower/stargazers","contributors_url":"https://api.github.com/repos/bower/bower/contributors","subscribers_url":"https://api.github.com/repos/bower/bower/subscribers","subscription_url":"https://api.github.com/repos/bower/bower/subscription","commits_url":"https://api.github.com/repos/bower/bower/commits{/sha}","git_commits_url":"https://api.github.com/repos/bower/bower/git/commits{/sha}","comments_url":"https://api.github.com/repos/bower/bower/comments{/number}","issue_comment_url":"https://api.github.com/repos/bower/bower/issues/comments{/number}","contents_url":"https://api.github.com/repos/bower/bower/contents/{+path}","compare_url":"https://api.github.com/repos/bower/bower/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bower/bower/merges","archive_url":"https://api.github.com/repos/bower/bower/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bower/bower/downloads","issues_url":"https://api.github.com/repos/bower/bower/issues{/number}","pulls_url":"https://api.github.com/repos/bower/bower/pulls{/number}","milestones_url":"https://api.github.com/repos/bower/bower/milestones{/number}","notifications_url":"https://api.github.com/repos/bower/bower/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bower/bower/labels{/name}","releases_url":"https://api.github.com/repos/bower/bower/releases{/id}","created_at":"2012-09-07T00:15:39Z","updated_at":"2015-12-17T05:45:18Z","pushed_at":"2015-12-15T15:32:25Z","git_url":"git://github.com/bower/bower.git","ssh_url":"git@github.com:bower/bower.git","clone_url":"https://github.com/bower/bower.git","svn_url":"https://github.com/bower/bower","homepage":"bower.io","size":5955,"stargazers_count":13411,"watchers_count":13411,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1719,"mirror_url":null,"open_issues_count":243,"forks":1719,"open_issues":243,"watchers":13411,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bower/bower/pulls/2109"},"html":{"href":"https://github.com/bower/bower/pull/2109"},"issue":{"href":"https://api.github.com/repos/bower/bower/issues/2109"},"comments":{"href":"https://api.github.com/repos/bower/bower/issues/2109/comments"},"review_comments":{"href":"https://api.github.com/repos/bower/bower/pulls/2109/comments"},"review_comment":{"href":"https://api.github.com/repos/bower/bower/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bower/bower/pulls/2109/commits"},"statuses":{"href":"https://api.github.com/repos/bower/bower/statuses/8fecde140a379fc260cf010141b33ddf37382c03"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":11,"deletions":5,"changed_files":1}}