{"action":"opened","number":10,"pull_request":{"url":"https://api.github.com/repos/jmespath/jmespath.rb/pulls/10","id":45270604,"html_url":"https://github.com/jmespath/jmespath.rb/pull/10","diff_url":"https://github.com/jmespath/jmespath.rb/pull/10.diff","patch_url":"https://github.com/jmespath/jmespath.rb/pull/10.patch","issue_url":"https://api.github.com/repos/jmespath/jmespath.rb/issues/10","number":10,"state":"open","locked":false,"title":"Added option to disable runtime exceptions","user":{"login":"effata","id":204507,"avatar_url":"https://avatars.githubusercontent.com/u/204507?v=3","gravatar_id":"","url":"https://api.github.com/users/effata","html_url":"https://github.com/effata","followers_url":"https://api.github.com/users/effata/followers","following_url":"https://api.github.com/users/effata/following{/other_user}","gists_url":"https://api.github.com/users/effata/gists{/gist_id}","starred_url":"https://api.github.com/users/effata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/effata/subscriptions","organizations_url":"https://api.github.com/users/effata/orgs","repos_url":"https://api.github.com/users/effata/repos","events_url":"https://api.github.com/users/effata/events{/privacy}","received_events_url":"https://api.github.com/users/effata/received_events","type":"User","site_admin":false},"body":"This pull request adds the option `disable_visit_errors`, which disables the raising of errors during runtime. Parse errors will still be raised, but all exceptions during `Node.visit(object)` are disabled and `nil` is instead returned. \r\n\r\nWe process very large amounts of data and sometimes objects do not have quite the right properties. So we have to catch `InvalidArityError` and `InvalidTypeError` since there is no way to preemptively check for these errors. This has quite a large overhead, especially in JRuby.\r\n\r\nI did some benchmarks with objects that always result in an exception, and this branch had a 40% speed increase in MRI, and a 500% increase in JRuby. ","created_at":"2015-09-17T09:44:18Z","updated_at":"2015-09-17T09:44:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jmespath/jmespath.rb/pulls/10/commits","review_comments_url":"https://api.github.com/repos/jmespath/jmespath.rb/pulls/10/comments","review_comment_url":"https://api.github.com/repos/jmespath/jmespath.rb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jmespath/jmespath.rb/issues/10/comments","statuses_url":"https://api.github.com/repos/jmespath/jmespath.rb/statuses/fe05ff2c31b24e770842c0e485d368f39e432a95","head":{"label":"effata:disable_visit_errors","ref":"disable_visit_errors","sha":"fe05ff2c31b24e770842c0e485d368f39e432a95","user":{"login":"effata","id":204507,"avatar_url":"https://avatars.githubusercontent.com/u/204507?v=3","gravatar_id":"","url":"https://api.github.com/users/effata","html_url":"https://github.com/effata","followers_url":"https://api.github.com/users/effata/followers","following_url":"https://api.github.com/users/effata/following{/other_user}","gists_url":"https://api.github.com/users/effata/gists{/gist_id}","starred_url":"https://api.github.com/users/effata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/effata/subscriptions","organizations_url":"https://api.github.com/users/effata/orgs","repos_url":"https://api.github.com/users/effata/repos","events_url":"https://api.github.com/users/effata/events{/privacy}","received_events_url":"https://api.github.com/users/effata/received_events","type":"User","site_admin":false},"repo":{"id":42645187,"name":"jmespath.rb","full_name":"effata/jmespath.rb","owner":{"login":"effata","id":204507,"avatar_url":"https://avatars.githubusercontent.com/u/204507?v=3","gravatar_id":"","url":"https://api.github.com/users/effata","html_url":"https://github.com/effata","followers_url":"https://api.github.com/users/effata/followers","following_url":"https://api.github.com/users/effata/following{/other_user}","gists_url":"https://api.github.com/users/effata/gists{/gist_id}","starred_url":"https://api.github.com/users/effata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/effata/subscriptions","organizations_url":"https://api.github.com/users/effata/orgs","repos_url":"https://api.github.com/users/effata/repos","events_url":"https://api.github.com/users/effata/events{/privacy}","received_events_url":"https://api.github.com/users/effata/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/effata/jmespath.rb","description":"Ruby implementation of JMESPath","fork":true,"url":"https://api.github.com/repos/effata/jmespath.rb","forks_url":"https://api.github.com/repos/effata/jmespath.rb/forks","keys_url":"https://api.github.com/repos/effata/jmespath.rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/effata/jmespath.rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/effata/jmespath.rb/teams","hooks_url":"https://api.github.com/repos/effata/jmespath.rb/hooks","issue_events_url":"https://api.github.com/repos/effata/jmespath.rb/issues/events{/number}","events_url":"https://api.github.com/repos/effata/jmespath.rb/events","assignees_url":"https://api.github.com/repos/effata/jmespath.rb/assignees{/user}","branches_url":"https://api.github.com/repos/effata/jmespath.rb/branches{/branch}","tags_url":"https://api.github.com/repos/effata/jmespath.rb/tags","blobs_url":"https://api.github.com/repos/effata/jmespath.rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/effata/jmespath.rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/effata/jmespath.rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/effata/jmespath.rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/effata/jmespath.rb/statuses/{sha}","languages_url":"https://api.github.com/repos/effata/jmespath.rb/languages","stargazers_url":"https://api.github.com/repos/effata/jmespath.rb/stargazers","contributors_url":"https://api.github.com/repos/effata/jmespath.rb/contributors","subscribers_url":"https://api.github.com/repos/effata/jmespath.rb/subscribers","subscription_url":"https://api.github.com/repos/effata/jmespath.rb/subscription","commits_url":"https://api.github.com/repos/effata/jmespath.rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/effata/jmespath.rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/effata/jmespath.rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/effata/jmespath.rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/effata/jmespath.rb/contents/{+path}","compare_url":"https://api.github.com/repos/effata/jmespath.rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/effata/jmespath.rb/merges","archive_url":"https://api.github.com/repos/effata/jmespath.rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/effata/jmespath.rb/downloads","issues_url":"https://api.github.com/repos/effata/jmespath.rb/issues{/number}","pulls_url":"https://api.github.com/repos/effata/jmespath.rb/pulls{/number}","milestones_url":"https://api.github.com/repos/effata/jmespath.rb/milestones{/number}","notifications_url":"https://api.github.com/repos/effata/jmespath.rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/effata/jmespath.rb/labels{/name}","releases_url":"https://api.github.com/repos/effata/jmespath.rb/releases{/id}","created_at":"2015-09-17T08:43:33Z","updated_at":"2015-09-17T08:43:33Z","pushed_at":"2015-09-17T09:23:53Z","git_url":"git://github.com/effata/jmespath.rb.git","ssh_url":"git@github.com:effata/jmespath.rb.git","clone_url":"https://github.com/effata/jmespath.rb.git","svn_url":"https://github.com/effata/jmespath.rb","homepage":null,"size":457,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"jmespath:master","ref":"master","sha":"92cc0abeedb5e0f6bf8926cb68b9fe5e402fb9e8","user":{"login":"jmespath","id":6053930,"avatar_url":"https://avatars.githubusercontent.com/u/6053930?v=3","gravatar_id":"","url":"https://api.github.com/users/jmespath","html_url":"https://github.com/jmespath","followers_url":"https://api.github.com/users/jmespath/followers","following_url":"https://api.github.com/users/jmespath/following{/other_user}","gists_url":"https://api.github.com/users/jmespath/gists{/gist_id}","starred_url":"https://api.github.com/users/jmespath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmespath/subscriptions","organizations_url":"https://api.github.com/users/jmespath/orgs","repos_url":"https://api.github.com/users/jmespath/repos","events_url":"https://api.github.com/users/jmespath/events{/privacy}","received_events_url":"https://api.github.com/users/jmespath/received_events","type":"Organization","site_admin":false},"repo":{"id":24695876,"name":"jmespath.rb","full_name":"jmespath/jmespath.rb","owner":{"login":"jmespath","id":6053930,"avatar_url":"https://avatars.githubusercontent.com/u/6053930?v=3","gravatar_id":"","url":"https://api.github.com/users/jmespath","html_url":"https://github.com/jmespath","followers_url":"https://api.github.com/users/jmespath/followers","following_url":"https://api.github.com/users/jmespath/following{/other_user}","gists_url":"https://api.github.com/users/jmespath/gists{/gist_id}","starred_url":"https://api.github.com/users/jmespath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmespath/subscriptions","organizations_url":"https://api.github.com/users/jmespath/orgs","repos_url":"https://api.github.com/users/jmespath/repos","events_url":"https://api.github.com/users/jmespath/events{/privacy}","received_events_url":"https://api.github.com/users/jmespath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jmespath/jmespath.rb","description":"Ruby implementation of JMESPath","fork":false,"url":"https://api.github.com/repos/jmespath/jmespath.rb","forks_url":"https://api.github.com/repos/jmespath/jmespath.rb/forks","keys_url":"https://api.github.com/repos/jmespath/jmespath.rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmespath/jmespath.rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmespath/jmespath.rb/teams","hooks_url":"https://api.github.com/repos/jmespath/jmespath.rb/hooks","issue_events_url":"https://api.github.com/repos/jmespath/jmespath.rb/issues/events{/number}","events_url":"https://api.github.com/repos/jmespath/jmespath.rb/events","assignees_url":"https://api.github.com/repos/jmespath/jmespath.rb/assignees{/user}","branches_url":"https://api.github.com/repos/jmespath/jmespath.rb/branches{/branch}","tags_url":"https://api.github.com/repos/jmespath/jmespath.rb/tags","blobs_url":"https://api.github.com/repos/jmespath/jmespath.rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmespath/jmespath.rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmespath/jmespath.rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmespath/jmespath.rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmespath/jmespath.rb/statuses/{sha}","languages_url":"https://api.github.com/repos/jmespath/jmespath.rb/languages","stargazers_url":"https://api.github.com/repos/jmespath/jmespath.rb/stargazers","contributors_url":"https://api.github.com/repos/jmespath/jmespath.rb/contributors","subscribers_url":"https://api.github.com/repos/jmespath/jmespath.rb/subscribers","subscription_url":"https://api.github.com/repos/jmespath/jmespath.rb/subscription","commits_url":"https://api.github.com/repos/jmespath/jmespath.rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmespath/jmespath.rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmespath/jmespath.rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmespath/jmespath.rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmespath/jmespath.rb/contents/{+path}","compare_url":"https://api.github.com/repos/jmespath/jmespath.rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmespath/jmespath.rb/merges","archive_url":"https://api.github.com/repos/jmespath/jmespath.rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmespath/jmespath.rb/downloads","issues_url":"https://api.github.com/repos/jmespath/jmespath.rb/issues{/number}","pulls_url":"https://api.github.com/repos/jmespath/jmespath.rb/pulls{/number}","milestones_url":"https://api.github.com/repos/jmespath/jmespath.rb/milestones{/number}","notifications_url":"https://api.github.com/repos/jmespath/jmespath.rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmespath/jmespath.rb/labels{/name}","releases_url":"https://api.github.com/repos/jmespath/jmespath.rb/releases{/id}","created_at":"2014-10-01T21:20:34Z","updated_at":"2015-07-03T16:13:20Z","pushed_at":"2015-09-17T03:03:29Z","git_url":"git://github.com/jmespath/jmespath.rb.git","ssh_url":"git@github.com:jmespath/jmespath.rb.git","clone_url":"https://github.com/jmespath/jmespath.rb.git","svn_url":"https://github.com/jmespath/jmespath.rb","homepage":null,"size":457,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":1,"forks":12,"open_issues":1,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jmespath/jmespath.rb/pulls/10"},"html":{"href":"https://github.com/jmespath/jmespath.rb/pull/10"},"issue":{"href":"https://api.github.com/repos/jmespath/jmespath.rb/issues/10"},"comments":{"href":"https://api.github.com/repos/jmespath/jmespath.rb/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/jmespath/jmespath.rb/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/jmespath/jmespath.rb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jmespath/jmespath.rb/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/jmespath/jmespath.rb/statuses/fe05ff2c31b24e770842c0e485d368f39e432a95"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":126,"deletions":64,"changed_files":6}}