{"action":"closed","number":6016,"pull_request":{"url":"https://api.github.com/repos/pouchdb/pouchdb/pulls/6016","id":98275519,"html_url":"https://github.com/pouchdb/pouchdb/pull/6016","diff_url":"https://github.com/pouchdb/pouchdb/pull/6016.diff","patch_url":"https://github.com/pouchdb/pouchdb/pull/6016.patch","issue_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/6016","number":6016,"state":"closed","locked":false,"title":"(#6016) - separate funcs for map vs reduce","user":{"login":"nolanlawson","id":283842,"avatar_url":"https://avatars.githubusercontent.com/u/283842?v=3","gravatar_id":"","url":"https://api.github.com/users/nolanlawson","html_url":"https://github.com/nolanlawson","followers_url":"https://api.github.com/users/nolanlawson/followers","following_url":"https://api.github.com/users/nolanlawson/following{/other_user}","gists_url":"https://api.github.com/users/nolanlawson/gists{/gist_id}","starred_url":"https://api.github.com/users/nolanlawson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolanlawson/subscriptions","organizations_url":"https://api.github.com/users/nolanlawson/orgs","repos_url":"https://api.github.com/users/nolanlawson/repos","events_url":"https://api.github.com/users/nolanlawson/events{/privacy}","received_events_url":"https://api.github.com/users/nolanlawson/received_events","type":"User","site_admin":false},"body":"This is another function that showed up as a major offender in terms of unnecessary memory allocations. But given that we only need to allocate new memory during the custom reduce functions (which are rarer than the custom map functions), this is a fairly easy fix.","created_at":"2016-12-16T04:03:44Z","updated_at":"2016-12-21T11:44:49Z","closed_at":"2016-12-21T11:44:49Z","merged_at":"2016-12-21T11:44:49Z","merge_commit_sha":"85694c2f8d8bd7319c470acb249b4d209c56c656","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pouchdb/pouchdb/pulls/6016/commits","review_comments_url":"https://api.github.com/repos/pouchdb/pouchdb/pulls/6016/comments","review_comment_url":"https://api.github.com/repos/pouchdb/pouchdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/6016/comments","statuses_url":"https://api.github.com/repos/pouchdb/pouchdb/statuses/b260d083056018a738fd04f686d1d5c7ee3ea11c","head":{"label":"pouchdb:separate-try-catch","ref":"separate-try-catch","sha":"b260d083056018a738fd04f686d1d5c7ee3ea11c","user":{"login":"pouchdb","id":3406112,"avatar_url":"https://avatars.githubusercontent.com/u/3406112?v=3","gravatar_id":"","url":"https://api.github.com/users/pouchdb","html_url":"https://github.com/pouchdb","followers_url":"https://api.github.com/users/pouchdb/followers","following_url":"https://api.github.com/users/pouchdb/following{/other_user}","gists_url":"https://api.github.com/users/pouchdb/gists{/gist_id}","starred_url":"https://api.github.com/users/pouchdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pouchdb/subscriptions","organizations_url":"https://api.github.com/users/pouchdb/orgs","repos_url":"https://api.github.com/users/pouchdb/repos","events_url":"https://api.github.com/users/pouchdb/events{/privacy}","received_events_url":"https://api.github.com/users/pouchdb/received_events","type":"Organization","site_admin":false},"repo":{"id":714074,"name":"pouchdb","full_name":"pouchdb/pouchdb","owner":{"login":"pouchdb","id":3406112,"avatar_url":"https://avatars.githubusercontent.com/u/3406112?v=3","gravatar_id":"","url":"https://api.github.com/users/pouchdb","html_url":"https://github.com/pouchdb","followers_url":"https://api.github.com/users/pouchdb/followers","following_url":"https://api.github.com/users/pouchdb/following{/other_user}","gists_url":"https://api.github.com/users/pouchdb/gists{/gist_id}","starred_url":"https://api.github.com/users/pouchdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pouchdb/subscriptions","organizations_url":"https://api.github.com/users/pouchdb/orgs","repos_url":"https://api.github.com/users/pouchdb/repos","events_url":"https://api.github.com/users/pouchdb/events{/privacy}","received_events_url":"https://api.github.com/users/pouchdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pouchdb/pouchdb","description":":koala: - PouchDB is a pocket-sized database.","fork":false,"url":"https://api.github.com/repos/pouchdb/pouchdb","forks_url":"https://api.github.com/repos/pouchdb/pouchdb/forks","keys_url":"https://api.github.com/repos/pouchdb/pouchdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pouchdb/pouchdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pouchdb/pouchdb/teams","hooks_url":"https://api.github.com/repos/pouchdb/pouchdb/hooks","issue_events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/events{/number}","events_url":"https://api.github.com/repos/pouchdb/pouchdb/events","assignees_url":"https://api.github.com/repos/pouchdb/pouchdb/assignees{/user}","branches_url":"https://api.github.com/repos/pouchdb/pouchdb/branches{/branch}","tags_url":"https://api.github.com/repos/pouchdb/pouchdb/tags","blobs_url":"https://api.github.com/repos/pouchdb/pouchdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pouchdb/pouchdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pouchdb/pouchdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/pouchdb/pouchdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pouchdb/pouchdb/statuses/{sha}","languages_url":"https://api.github.com/repos/pouchdb/pouchdb/languages","stargazers_url":"https://api.github.com/repos/pouchdb/pouchdb/stargazers","contributors_url":"https://api.github.com/repos/pouchdb/pouchdb/contributors","subscribers_url":"https://api.github.com/repos/pouchdb/pouchdb/subscribers","subscription_url":"https://api.github.com/repos/pouchdb/pouchdb/subscription","commits_url":"https://api.github.com/repos/pouchdb/pouchdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/pouchdb/pouchdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/pouchdb/pouchdb/contents/{+path}","compare_url":"https://api.github.com/repos/pouchdb/pouchdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pouchdb/pouchdb/merges","archive_url":"https://api.github.com/repos/pouchdb/pouchdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pouchdb/pouchdb/downloads","issues_url":"https://api.github.com/repos/pouchdb/pouchdb/issues{/number}","pulls_url":"https://api.github.com/repos/pouchdb/pouchdb/pulls{/number}","milestones_url":"https://api.github.com/repos/pouchdb/pouchdb/milestones{/number}","notifications_url":"https://api.github.com/repos/pouchdb/pouchdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/labels{/name}","releases_url":"https://api.github.com/repos/pouchdb/pouchdb/releases{/id}","deployments_url":"https://api.github.com/repos/pouchdb/pouchdb/deployments","created_at":"2010-06-10T18:34:24Z","updated_at":"2016-12-21T11:19:06Z","pushed_at":"2016-12-21T11:44:49Z","git_url":"git://github.com/pouchdb/pouchdb.git","ssh_url":"git@github.com:pouchdb/pouchdb.git","clone_url":"https://github.com/pouchdb/pouchdb.git","svn_url":"https://github.com/pouchdb/pouchdb","homepage":"https://pouchdb.com/","size":111457,"stargazers_count":7943,"watchers_count":7943,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":829,"mirror_url":null,"open_issues_count":109,"forks":829,"open_issues":109,"watchers":7943,"default_branch":"master"}},"base":{"label":"pouchdb:master","ref":"master","sha":"3e6df5d4e989fafd2c581b4de597da2437273234","user":{"login":"pouchdb","id":3406112,"avatar_url":"https://avatars.githubusercontent.com/u/3406112?v=3","gravatar_id":"","url":"https://api.github.com/users/pouchdb","html_url":"https://github.com/pouchdb","followers_url":"https://api.github.com/users/pouchdb/followers","following_url":"https://api.github.com/users/pouchdb/following{/other_user}","gists_url":"https://api.github.com/users/pouchdb/gists{/gist_id}","starred_url":"https://api.github.com/users/pouchdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pouchdb/subscriptions","organizations_url":"https://api.github.com/users/pouchdb/orgs","repos_url":"https://api.github.com/users/pouchdb/repos","events_url":"https://api.github.com/users/pouchdb/events{/privacy}","received_events_url":"https://api.github.com/users/pouchdb/received_events","type":"Organization","site_admin":false},"repo":{"id":714074,"name":"pouchdb","full_name":"pouchdb/pouchdb","owner":{"login":"pouchdb","id":3406112,"avatar_url":"https://avatars.githubusercontent.com/u/3406112?v=3","gravatar_id":"","url":"https://api.github.com/users/pouchdb","html_url":"https://github.com/pouchdb","followers_url":"https://api.github.com/users/pouchdb/followers","following_url":"https://api.github.com/users/pouchdb/following{/other_user}","gists_url":"https://api.github.com/users/pouchdb/gists{/gist_id}","starred_url":"https://api.github.com/users/pouchdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pouchdb/subscriptions","organizations_url":"https://api.github.com/users/pouchdb/orgs","repos_url":"https://api.github.com/users/pouchdb/repos","events_url":"https://api.github.com/users/pouchdb/events{/privacy}","received_events_url":"https://api.github.com/users/pouchdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pouchdb/pouchdb","description":":koala: - PouchDB is a pocket-sized database.","fork":false,"url":"https://api.github.com/repos/pouchdb/pouchdb","forks_url":"https://api.github.com/repos/pouchdb/pouchdb/forks","keys_url":"https://api.github.com/repos/pouchdb/pouchdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pouchdb/pouchdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pouchdb/pouchdb/teams","hooks_url":"https://api.github.com/repos/pouchdb/pouchdb/hooks","issue_events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/events{/number}","events_url":"https://api.github.com/repos/pouchdb/pouchdb/events","assignees_url":"https://api.github.com/repos/pouchdb/pouchdb/assignees{/user}","branches_url":"https://api.github.com/repos/pouchdb/pouchdb/branches{/branch}","tags_url":"https://api.github.com/repos/pouchdb/pouchdb/tags","blobs_url":"https://api.github.com/repos/pouchdb/pouchdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pouchdb/pouchdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pouchdb/pouchdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/pouchdb/pouchdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pouchdb/pouchdb/statuses/{sha}","languages_url":"https://api.github.com/repos/pouchdb/pouchdb/languages","stargazers_url":"https://api.github.com/repos/pouchdb/pouchdb/stargazers","contributors_url":"https://api.github.com/repos/pouchdb/pouchdb/contributors","subscribers_url":"https://api.github.com/repos/pouchdb/pouchdb/subscribers","subscription_url":"https://api.github.com/repos/pouchdb/pouchdb/subscription","commits_url":"https://api.github.com/repos/pouchdb/pouchdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/pouchdb/pouchdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/pouchdb/pouchdb/contents/{+path}","compare_url":"https://api.github.com/repos/pouchdb/pouchdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pouchdb/pouchdb/merges","archive_url":"https://api.github.com/repos/pouchdb/pouchdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pouchdb/pouchdb/downloads","issues_url":"https://api.github.com/repos/pouchdb/pouchdb/issues{/number}","pulls_url":"https://api.github.com/repos/pouchdb/pouchdb/pulls{/number}","milestones_url":"https://api.github.com/repos/pouchdb/pouchdb/milestones{/number}","notifications_url":"https://api.github.com/repos/pouchdb/pouchdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/labels{/name}","releases_url":"https://api.github.com/repos/pouchdb/pouchdb/releases{/id}","deployments_url":"https://api.github.com/repos/pouchdb/pouchdb/deployments","created_at":"2010-06-10T18:34:24Z","updated_at":"2016-12-21T11:19:06Z","pushed_at":"2016-12-21T11:44:49Z","git_url":"git://github.com/pouchdb/pouchdb.git","ssh_url":"git@github.com:pouchdb/pouchdb.git","clone_url":"https://github.com/pouchdb/pouchdb.git","svn_url":"https://github.com/pouchdb/pouchdb","homepage":"https://pouchdb.com/","size":111457,"stargazers_count":7943,"watchers_count":7943,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":829,"mirror_url":null,"open_issues_count":109,"forks":829,"open_issues":109,"watchers":7943,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pouchdb/pouchdb/pulls/6016"},"html":{"href":"https://github.com/pouchdb/pouchdb/pull/6016"},"issue":{"href":"https://api.github.com/repos/pouchdb/pouchdb/issues/6016"},"comments":{"href":"https://api.github.com/repos/pouchdb/pouchdb/issues/6016/comments"},"review_comments":{"href":"https://api.github.com/repos/pouchdb/pouchdb/pulls/6016/comments"},"review_comment":{"href":"https://api.github.com/repos/pouchdb/pouchdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pouchdb/pouchdb/pulls/6016/commits"},"statuses":{"href":"https://api.github.com/repos/pouchdb/pouchdb/statuses/b260d083056018a738fd04f686d1d5c7ee3ea11c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"daleharvey","id":37787,"avatar_url":"https://avatars.githubusercontent.com/u/37787?v=3","gravatar_id":"","url":"https://api.github.com/users/daleharvey","html_url":"https://github.com/daleharvey","followers_url":"https://api.github.com/users/daleharvey/followers","following_url":"https://api.github.com/users/daleharvey/following{/other_user}","gists_url":"https://api.github.com/users/daleharvey/gists{/gist_id}","starred_url":"https://api.github.com/users/daleharvey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daleharvey/subscriptions","organizations_url":"https://api.github.com/users/daleharvey/orgs","repos_url":"https://api.github.com/users/daleharvey/repos","events_url":"https://api.github.com/users/daleharvey/events{/privacy}","received_events_url":"https://api.github.com/users/daleharvey/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":9,"changed_files":1}}
{"actor":{"display_login":"daleharvey"}}