{"action":"created","issue":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4140","labels_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4140/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4140/comments","events_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4140/events","html_url":"https://github.com/pouchdb/pouchdb/pull/4140","id":99924386,"number":4140,"title":"(#3921) - small optimizations to merge.js","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-09T19:57:51Z","updated_at":"2015-08-09T21:53:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/pouchdb/pouchdb/pulls/4140","html_url":"https://github.com/pouchdb/pouchdb/pull/4140","diff_url":"https://github.com/pouchdb/pouchdb/pull/4140.diff","patch_url":"https://github.com/pouchdb/pouchdb/pull/4140.patch"},"body":"According to performance profiling I've been doing, the big boost here should come from not calling `extend()`, which it turned out was unnecessary anyway. I also went through and removed as many functions-within-functions as I could, and migrated everything from `forEach()` to regular `for` loops.\r\n\r\nWhen this is green, I'll provide some perf numbers to justify it. Looking at the Chrome profiler, though, this should help a lot."},"comment":{"url":"https://api.github.com/repos/pouchdb/pouchdb/issues/comments/129250273","html_url":"https://github.com/pouchdb/pouchdb/pull/4140#issuecomment-129250273","issue_url":"https://api.github.com/repos/pouchdb/pouchdb/issues/4140","id":129250273,"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},"created_at":"2015-08-09T21:53:58Z","updated_at":"2015-08-09T21:53:58Z","body":"true failures in the unit tests. I will fix"}}