{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/foprc/node-c-addon-test/pulls/1","id":41396006,"html_url":"https://github.com/foprc/node-c-addon-test/pull/1","diff_url":"https://github.com/foprc/node-c-addon-test/pull/1.diff","patch_url":"https://github.com/foprc/node-c-addon-test/pull/1.patch","issue_url":"https://api.github.com/repos/foprc/node-c-addon-test/issues/1","number":1,"state":"open","locked":false,"title":"optimized","user":{"login":"tcz001","id":1702340,"avatar_url":"https://avatars.githubusercontent.com/u/1702340?v=3","gravatar_id":"","url":"https://api.github.com/users/tcz001","html_url":"https://github.com/tcz001","followers_url":"https://api.github.com/users/tcz001/followers","following_url":"https://api.github.com/users/tcz001/following{/other_user}","gists_url":"https://api.github.com/users/tcz001/gists{/gist_id}","starred_url":"https://api.github.com/users/tcz001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcz001/subscriptions","organizations_url":"https://api.github.com/users/tcz001/orgs","repos_url":"https://api.github.com/users/tcz001/repos","events_url":"https://api.github.com/users/tcz001/events{/privacy}","received_events_url":"https://api.github.com/users/tcz001/received_events","type":"User","site_admin":false},"body":"试着优化了下，其实也不算是什么优化，只是把compare的东西从object里拿出来，具体看情况，如果有复杂逻辑应该考虑vector化","created_at":"2015-08-01T04:09:27Z","updated_at":"2015-08-01T04:09:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/foprc/node-c-addon-test/pulls/1/commits","review_comments_url":"https://api.github.com/repos/foprc/node-c-addon-test/pulls/1/comments","review_comment_url":"https://api.github.com/repos/foprc/node-c-addon-test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/foprc/node-c-addon-test/issues/1/comments","statuses_url":"https://api.github.com/repos/foprc/node-c-addon-test/statuses/411a36323a41e903d17fdfd348974dc39db622ab","head":{"label":"tcz001:master","ref":"master","sha":"411a36323a41e903d17fdfd348974dc39db622ab","user":{"login":"tcz001","id":1702340,"avatar_url":"https://avatars.githubusercontent.com/u/1702340?v=3","gravatar_id":"","url":"https://api.github.com/users/tcz001","html_url":"https://github.com/tcz001","followers_url":"https://api.github.com/users/tcz001/followers","following_url":"https://api.github.com/users/tcz001/following{/other_user}","gists_url":"https://api.github.com/users/tcz001/gists{/gist_id}","starred_url":"https://api.github.com/users/tcz001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcz001/subscriptions","organizations_url":"https://api.github.com/users/tcz001/orgs","repos_url":"https://api.github.com/users/tcz001/repos","events_url":"https://api.github.com/users/tcz001/events{/privacy}","received_events_url":"https://api.github.com/users/tcz001/received_events","type":"User","site_admin":false},"repo":{"id":40034718,"name":"node-c-addon-test","full_name":"tcz001/node-c-addon-test","owner":{"login":"tcz001","id":1702340,"avatar_url":"https://avatars.githubusercontent.com/u/1702340?v=3","gravatar_id":"","url":"https://api.github.com/users/tcz001","html_url":"https://github.com/tcz001","followers_url":"https://api.github.com/users/tcz001/followers","following_url":"https://api.github.com/users/tcz001/following{/other_user}","gists_url":"https://api.github.com/users/tcz001/gists{/gist_id}","starred_url":"https://api.github.com/users/tcz001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcz001/subscriptions","organizations_url":"https://api.github.com/users/tcz001/orgs","repos_url":"https://api.github.com/users/tcz001/repos","events_url":"https://api.github.com/users/tcz001/events{/privacy}","received_events_url":"https://api.github.com/users/tcz001/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tcz001/node-c-addon-test","description":"","fork":true,"url":"https://api.github.com/repos/tcz001/node-c-addon-test","forks_url":"https://api.github.com/repos/tcz001/node-c-addon-test/forks","keys_url":"https://api.github.com/repos/tcz001/node-c-addon-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tcz001/node-c-addon-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tcz001/node-c-addon-test/teams","hooks_url":"https://api.github.com/repos/tcz001/node-c-addon-test/hooks","issue_events_url":"https://api.github.com/repos/tcz001/node-c-addon-test/issues/events{/number}","events_url":"https://api.github.com/repos/tcz001/node-c-addon-test/events","assignees_url":"https://api.github.com/repos/tcz001/node-c-addon-test/assignees{/user}","branches_url":"https://api.github.com/repos/tcz001/node-c-addon-test/branches{/branch}","tags_url":"https://api.github.com/repos/tcz001/node-c-addon-test/tags","blobs_url":"https://api.github.com/repos/tcz001/node-c-addon-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tcz001/node-c-addon-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tcz001/node-c-addon-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/tcz001/node-c-addon-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tcz001/node-c-addon-test/statuses/{sha}","languages_url":"https://api.github.com/repos/tcz001/node-c-addon-test/languages","stargazers_url":"https://api.github.com/repos/tcz001/node-c-addon-test/stargazers","contributors_url":"https://api.github.com/repos/tcz001/node-c-addon-test/contributors","subscribers_url":"https://api.github.com/repos/tcz001/node-c-addon-test/subscribers","subscription_url":"https://api.github.com/repos/tcz001/node-c-addon-test/subscription","commits_url":"https://api.github.com/repos/tcz001/node-c-addon-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/tcz001/node-c-addon-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/tcz001/node-c-addon-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/tcz001/node-c-addon-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/tcz001/node-c-addon-test/contents/{+path}","compare_url":"https://api.github.com/repos/tcz001/node-c-addon-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tcz001/node-c-addon-test/merges","archive_url":"https://api.github.com/repos/tcz001/node-c-addon-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tcz001/node-c-addon-test/downloads","issues_url":"https://api.github.com/repos/tcz001/node-c-addon-test/issues{/number}","pulls_url":"https://api.github.com/repos/tcz001/node-c-addon-test/pulls{/number}","milestones_url":"https://api.github.com/repos/tcz001/node-c-addon-test/milestones{/number}","notifications_url":"https://api.github.com/repos/tcz001/node-c-addon-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tcz001/node-c-addon-test/labels{/name}","releases_url":"https://api.github.com/repos/tcz001/node-c-addon-test/releases{/id}","created_at":"2015-08-01T04:03:31Z","updated_at":"2015-08-01T04:03:31Z","pushed_at":"2015-08-01T04:06:05Z","git_url":"git://github.com/tcz001/node-c-addon-test.git","ssh_url":"git@github.com:tcz001/node-c-addon-test.git","clone_url":"https://github.com/tcz001/node-c-addon-test.git","svn_url":"https://github.com/tcz001/node-c-addon-test","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"foprc:master","ref":"master","sha":"241e2d04692899f6f81a41ca69fff3a0d2f0b10c","user":{"login":"foprc","id":140939,"avatar_url":"https://avatars.githubusercontent.com/u/140939?v=3","gravatar_id":"","url":"https://api.github.com/users/foprc","html_url":"https://github.com/foprc","followers_url":"https://api.github.com/users/foprc/followers","following_url":"https://api.github.com/users/foprc/following{/other_user}","gists_url":"https://api.github.com/users/foprc/gists{/gist_id}","starred_url":"https://api.github.com/users/foprc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foprc/subscriptions","organizations_url":"https://api.github.com/users/foprc/orgs","repos_url":"https://api.github.com/users/foprc/repos","events_url":"https://api.github.com/users/foprc/events{/privacy}","received_events_url":"https://api.github.com/users/foprc/received_events","type":"User","site_admin":false},"repo":{"id":40032470,"name":"node-c-addon-test","full_name":"foprc/node-c-addon-test","owner":{"login":"foprc","id":140939,"avatar_url":"https://avatars.githubusercontent.com/u/140939?v=3","gravatar_id":"","url":"https://api.github.com/users/foprc","html_url":"https://github.com/foprc","followers_url":"https://api.github.com/users/foprc/followers","following_url":"https://api.github.com/users/foprc/following{/other_user}","gists_url":"https://api.github.com/users/foprc/gists{/gist_id}","starred_url":"https://api.github.com/users/foprc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foprc/subscriptions","organizations_url":"https://api.github.com/users/foprc/orgs","repos_url":"https://api.github.com/users/foprc/repos","events_url":"https://api.github.com/users/foprc/events{/privacy}","received_events_url":"https://api.github.com/users/foprc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/foprc/node-c-addon-test","description":"","fork":false,"url":"https://api.github.com/repos/foprc/node-c-addon-test","forks_url":"https://api.github.com/repos/foprc/node-c-addon-test/forks","keys_url":"https://api.github.com/repos/foprc/node-c-addon-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/foprc/node-c-addon-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/foprc/node-c-addon-test/teams","hooks_url":"https://api.github.com/repos/foprc/node-c-addon-test/hooks","issue_events_url":"https://api.github.com/repos/foprc/node-c-addon-test/issues/events{/number}","events_url":"https://api.github.com/repos/foprc/node-c-addon-test/events","assignees_url":"https://api.github.com/repos/foprc/node-c-addon-test/assignees{/user}","branches_url":"https://api.github.com/repos/foprc/node-c-addon-test/branches{/branch}","tags_url":"https://api.github.com/repos/foprc/node-c-addon-test/tags","blobs_url":"https://api.github.com/repos/foprc/node-c-addon-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/foprc/node-c-addon-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/foprc/node-c-addon-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/foprc/node-c-addon-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/foprc/node-c-addon-test/statuses/{sha}","languages_url":"https://api.github.com/repos/foprc/node-c-addon-test/languages","stargazers_url":"https://api.github.com/repos/foprc/node-c-addon-test/stargazers","contributors_url":"https://api.github.com/repos/foprc/node-c-addon-test/contributors","subscribers_url":"https://api.github.com/repos/foprc/node-c-addon-test/subscribers","subscription_url":"https://api.github.com/repos/foprc/node-c-addon-test/subscription","commits_url":"https://api.github.com/repos/foprc/node-c-addon-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/foprc/node-c-addon-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/foprc/node-c-addon-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/foprc/node-c-addon-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/foprc/node-c-addon-test/contents/{+path}","compare_url":"https://api.github.com/repos/foprc/node-c-addon-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/foprc/node-c-addon-test/merges","archive_url":"https://api.github.com/repos/foprc/node-c-addon-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/foprc/node-c-addon-test/downloads","issues_url":"https://api.github.com/repos/foprc/node-c-addon-test/issues{/number}","pulls_url":"https://api.github.com/repos/foprc/node-c-addon-test/pulls{/number}","milestones_url":"https://api.github.com/repos/foprc/node-c-addon-test/milestones{/number}","notifications_url":"https://api.github.com/repos/foprc/node-c-addon-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/foprc/node-c-addon-test/labels{/name}","releases_url":"https://api.github.com/repos/foprc/node-c-addon-test/releases{/id}","created_at":"2015-08-01T02:24:16Z","updated_at":"2015-08-01T03:06:51Z","pushed_at":"2015-08-01T03:06:50Z","git_url":"git://github.com/foprc/node-c-addon-test.git","ssh_url":"git@github.com:foprc/node-c-addon-test.git","clone_url":"https://github.com/foprc/node-c-addon-test.git","svn_url":"https://github.com/foprc/node-c-addon-test","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/foprc/node-c-addon-test/pulls/1"},"html":{"href":"https://github.com/foprc/node-c-addon-test/pull/1"},"issue":{"href":"https://api.github.com/repos/foprc/node-c-addon-test/issues/1"},"comments":{"href":"https://api.github.com/repos/foprc/node-c-addon-test/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/foprc/node-c-addon-test/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/foprc/node-c-addon-test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/foprc/node-c-addon-test/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/foprc/node-c-addon-test/statuses/411a36323a41e903d17fdfd348974dc39db622ab"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":43,"deletions":24,"changed_files":1}}