{"action":"opened","number":204,"pull_request":{"url":"https://api.github.com/repos/thunder-project/thunder/pulls/204","id":39862258,"html_url":"https://github.com/thunder-project/thunder/pull/204","diff_url":"https://github.com/thunder-project/thunder/pull/204.diff","patch_url":"https://github.com/thunder-project/thunder/pull/204.patch","issue_url":"https://api.github.com/repos/thunder-project/thunder/issues/204","number":204,"state":"open","locked":false,"title":"Use tree reduce for aggregation","user":{"login":"freeman-lab","id":3387500,"avatar_url":"https://avatars.githubusercontent.com/u/3387500?v=3","gravatar_id":"","url":"https://api.github.com/users/freeman-lab","html_url":"https://github.com/freeman-lab","followers_url":"https://api.github.com/users/freeman-lab/followers","following_url":"https://api.github.com/users/freeman-lab/following{/other_user}","gists_url":"https://api.github.com/users/freeman-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/freeman-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeman-lab/subscriptions","organizations_url":"https://api.github.com/users/freeman-lab/orgs","repos_url":"https://api.github.com/users/freeman-lab/repos","events_url":"https://api.github.com/users/freeman-lab/events{/privacy}","received_events_url":"https://api.github.com/users/freeman-lab/received_events","type":"User","site_admin":false},"body":"This PR changes the core aggregation functions to use `treeReduce` instead of `reduce`. In large-scale testing, this change improved performance by anywhere from a factor of 2-5x when performing reductions (e.g. `sum`) on very large records (each individual record 200-500 MB), without noticeably affecting performance on reduces with much smaller records.\r\n\r\nInitial testing suggests that this change may also eliminate various memory-related errors we were encountering on large reduces, but further testing is required to confirm.","created_at":"2015-07-13T22:08:36Z","updated_at":"2015-07-13T22:08:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thunder-project/thunder/pulls/204/commits","review_comments_url":"https://api.github.com/repos/thunder-project/thunder/pulls/204/comments","review_comment_url":"https://api.github.com/repos/thunder-project/thunder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thunder-project/thunder/issues/204/comments","statuses_url":"https://api.github.com/repos/thunder-project/thunder/statuses/cf9806156a4dfa3bc27277a76140a92c7538cbc4","head":{"label":"thunder-project:better-reduce","ref":"better-reduce","sha":"cf9806156a4dfa3bc27277a76140a92c7538cbc4","user":{"login":"thunder-project","id":10603853,"avatar_url":"https://avatars.githubusercontent.com/u/10603853?v=3","gravatar_id":"","url":"https://api.github.com/users/thunder-project","html_url":"https://github.com/thunder-project","followers_url":"https://api.github.com/users/thunder-project/followers","following_url":"https://api.github.com/users/thunder-project/following{/other_user}","gists_url":"https://api.github.com/users/thunder-project/gists{/gist_id}","starred_url":"https://api.github.com/users/thunder-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thunder-project/subscriptions","organizations_url":"https://api.github.com/users/thunder-project/orgs","repos_url":"https://api.github.com/users/thunder-project/repos","events_url":"https://api.github.com/users/thunder-project/events{/privacy}","received_events_url":"https://api.github.com/users/thunder-project/received_events","type":"Organization","site_admin":false},"repo":{"id":10616272,"name":"thunder","full_name":"thunder-project/thunder","owner":{"login":"thunder-project","id":10603853,"avatar_url":"https://avatars.githubusercontent.com/u/10603853?v=3","gravatar_id":"","url":"https://api.github.com/users/thunder-project","html_url":"https://github.com/thunder-project","followers_url":"https://api.github.com/users/thunder-project/followers","following_url":"https://api.github.com/users/thunder-project/following{/other_user}","gists_url":"https://api.github.com/users/thunder-project/gists{/gist_id}","starred_url":"https://api.github.com/users/thunder-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thunder-project/subscriptions","organizations_url":"https://api.github.com/users/thunder-project/orgs","repos_url":"https://api.github.com/users/thunder-project/repos","events_url":"https://api.github.com/users/thunder-project/events{/privacy}","received_events_url":"https://api.github.com/users/thunder-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thunder-project/thunder","description":"Large-scale neural data analysis with Spark","fork":false,"url":"https://api.github.com/repos/thunder-project/thunder","forks_url":"https://api.github.com/repos/thunder-project/thunder/forks","keys_url":"https://api.github.com/repos/thunder-project/thunder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thunder-project/thunder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thunder-project/thunder/teams","hooks_url":"https://api.github.com/repos/thunder-project/thunder/hooks","issue_events_url":"https://api.github.com/repos/thunder-project/thunder/issues/events{/number}","events_url":"https://api.github.com/repos/thunder-project/thunder/events","assignees_url":"https://api.github.com/repos/thunder-project/thunder/assignees{/user}","branches_url":"https://api.github.com/repos/thunder-project/thunder/branches{/branch}","tags_url":"https://api.github.com/repos/thunder-project/thunder/tags","blobs_url":"https://api.github.com/repos/thunder-project/thunder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thunder-project/thunder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thunder-project/thunder/git/refs{/sha}","trees_url":"https://api.github.com/repos/thunder-project/thunder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thunder-project/thunder/statuses/{sha}","languages_url":"https://api.github.com/repos/thunder-project/thunder/languages","stargazers_url":"https://api.github.com/repos/thunder-project/thunder/stargazers","contributors_url":"https://api.github.com/repos/thunder-project/thunder/contributors","subscribers_url":"https://api.github.com/repos/thunder-project/thunder/subscribers","subscription_url":"https://api.github.com/repos/thunder-project/thunder/subscription","commits_url":"https://api.github.com/repos/thunder-project/thunder/commits{/sha}","git_commits_url":"https://api.github.com/repos/thunder-project/thunder/git/commits{/sha}","comments_url":"https://api.github.com/repos/thunder-project/thunder/comments{/number}","issue_comment_url":"https://api.github.com/repos/thunder-project/thunder/issues/comments{/number}","contents_url":"https://api.github.com/repos/thunder-project/thunder/contents/{+path}","compare_url":"https://api.github.com/repos/thunder-project/thunder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thunder-project/thunder/merges","archive_url":"https://api.github.com/repos/thunder-project/thunder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thunder-project/thunder/downloads","issues_url":"https://api.github.com/repos/thunder-project/thunder/issues{/number}","pulls_url":"https://api.github.com/repos/thunder-project/thunder/pulls{/number}","milestones_url":"https://api.github.com/repos/thunder-project/thunder/milestones{/number}","notifications_url":"https://api.github.com/repos/thunder-project/thunder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thunder-project/thunder/labels{/name}","releases_url":"https://api.github.com/repos/thunder-project/thunder/releases{/id}","created_at":"2013-06-11T07:00:47Z","updated_at":"2015-07-08T13:11:48Z","pushed_at":"2015-07-13T22:03:08Z","git_url":"git://github.com/thunder-project/thunder.git","ssh_url":"git@github.com:thunder-project/thunder.git","clone_url":"https://github.com/thunder-project/thunder.git","svn_url":"https://github.com/thunder-project/thunder","homepage":"http://thunder-project.org","size":81473,"stargazers_count":328,"watchers_count":328,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":92,"mirror_url":null,"open_issues_count":41,"forks":92,"open_issues":41,"watchers":328,"default_branch":"master"}},"base":{"label":"thunder-project:master","ref":"master","sha":"4dad77721e2c9e225f94a6a5366d51ec83ac4690","user":{"login":"thunder-project","id":10603853,"avatar_url":"https://avatars.githubusercontent.com/u/10603853?v=3","gravatar_id":"","url":"https://api.github.com/users/thunder-project","html_url":"https://github.com/thunder-project","followers_url":"https://api.github.com/users/thunder-project/followers","following_url":"https://api.github.com/users/thunder-project/following{/other_user}","gists_url":"https://api.github.com/users/thunder-project/gists{/gist_id}","starred_url":"https://api.github.com/users/thunder-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thunder-project/subscriptions","organizations_url":"https://api.github.com/users/thunder-project/orgs","repos_url":"https://api.github.com/users/thunder-project/repos","events_url":"https://api.github.com/users/thunder-project/events{/privacy}","received_events_url":"https://api.github.com/users/thunder-project/received_events","type":"Organization","site_admin":false},"repo":{"id":10616272,"name":"thunder","full_name":"thunder-project/thunder","owner":{"login":"thunder-project","id":10603853,"avatar_url":"https://avatars.githubusercontent.com/u/10603853?v=3","gravatar_id":"","url":"https://api.github.com/users/thunder-project","html_url":"https://github.com/thunder-project","followers_url":"https://api.github.com/users/thunder-project/followers","following_url":"https://api.github.com/users/thunder-project/following{/other_user}","gists_url":"https://api.github.com/users/thunder-project/gists{/gist_id}","starred_url":"https://api.github.com/users/thunder-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thunder-project/subscriptions","organizations_url":"https://api.github.com/users/thunder-project/orgs","repos_url":"https://api.github.com/users/thunder-project/repos","events_url":"https://api.github.com/users/thunder-project/events{/privacy}","received_events_url":"https://api.github.com/users/thunder-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thunder-project/thunder","description":"Large-scale neural data analysis with Spark","fork":false,"url":"https://api.github.com/repos/thunder-project/thunder","forks_url":"https://api.github.com/repos/thunder-project/thunder/forks","keys_url":"https://api.github.com/repos/thunder-project/thunder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thunder-project/thunder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thunder-project/thunder/teams","hooks_url":"https://api.github.com/repos/thunder-project/thunder/hooks","issue_events_url":"https://api.github.com/repos/thunder-project/thunder/issues/events{/number}","events_url":"https://api.github.com/repos/thunder-project/thunder/events","assignees_url":"https://api.github.com/repos/thunder-project/thunder/assignees{/user}","branches_url":"https://api.github.com/repos/thunder-project/thunder/branches{/branch}","tags_url":"https://api.github.com/repos/thunder-project/thunder/tags","blobs_url":"https://api.github.com/repos/thunder-project/thunder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thunder-project/thunder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thunder-project/thunder/git/refs{/sha}","trees_url":"https://api.github.com/repos/thunder-project/thunder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thunder-project/thunder/statuses/{sha}","languages_url":"https://api.github.com/repos/thunder-project/thunder/languages","stargazers_url":"https://api.github.com/repos/thunder-project/thunder/stargazers","contributors_url":"https://api.github.com/repos/thunder-project/thunder/contributors","subscribers_url":"https://api.github.com/repos/thunder-project/thunder/subscribers","subscription_url":"https://api.github.com/repos/thunder-project/thunder/subscription","commits_url":"https://api.github.com/repos/thunder-project/thunder/commits{/sha}","git_commits_url":"https://api.github.com/repos/thunder-project/thunder/git/commits{/sha}","comments_url":"https://api.github.com/repos/thunder-project/thunder/comments{/number}","issue_comment_url":"https://api.github.com/repos/thunder-project/thunder/issues/comments{/number}","contents_url":"https://api.github.com/repos/thunder-project/thunder/contents/{+path}","compare_url":"https://api.github.com/repos/thunder-project/thunder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thunder-project/thunder/merges","archive_url":"https://api.github.com/repos/thunder-project/thunder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thunder-project/thunder/downloads","issues_url":"https://api.github.com/repos/thunder-project/thunder/issues{/number}","pulls_url":"https://api.github.com/repos/thunder-project/thunder/pulls{/number}","milestones_url":"https://api.github.com/repos/thunder-project/thunder/milestones{/number}","notifications_url":"https://api.github.com/repos/thunder-project/thunder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thunder-project/thunder/labels{/name}","releases_url":"https://api.github.com/repos/thunder-project/thunder/releases{/id}","created_at":"2013-06-11T07:00:47Z","updated_at":"2015-07-08T13:11:48Z","pushed_at":"2015-07-13T22:03:08Z","git_url":"git://github.com/thunder-project/thunder.git","ssh_url":"git@github.com:thunder-project/thunder.git","clone_url":"https://github.com/thunder-project/thunder.git","svn_url":"https://github.com/thunder-project/thunder","homepage":"http://thunder-project.org","size":81473,"stargazers_count":328,"watchers_count":328,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":92,"mirror_url":null,"open_issues_count":41,"forks":92,"open_issues":41,"watchers":328,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thunder-project/thunder/pulls/204"},"html":{"href":"https://github.com/thunder-project/thunder/pull/204"},"issue":{"href":"https://api.github.com/repos/thunder-project/thunder/issues/204"},"comments":{"href":"https://api.github.com/repos/thunder-project/thunder/issues/204/comments"},"review_comments":{"href":"https://api.github.com/repos/thunder-project/thunder/pulls/204/comments"},"review_comment":{"href":"https://api.github.com/repos/thunder-project/thunder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thunder-project/thunder/pulls/204/commits"},"statuses":{"href":"https://api.github.com/repos/thunder-project/thunder/statuses/cf9806156a4dfa3bc27277a76140a92c7538cbc4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":5,"changed_files":1}}