{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/5343","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/5343/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/5343/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/5343/events","html_url":"https://github.com/jruby/jruby/pull/5343","id":366147479,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5ODk1NTg2","number":5343,"title":"\"==\" can be redefined","user":{"login":"ahorek","id":9540855,"node_id":"MDQ6VXNlcjk1NDA4NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/9540855?v=4","gravatar_id":"","url":"https://api.github.com/users/ahorek","html_url":"https://github.com/ahorek","followers_url":"https://api.github.com/users/ahorek/followers","following_url":"https://api.github.com/users/ahorek/following{/other_user}","gists_url":"https://api.github.com/users/ahorek/gists{/gist_id}","starred_url":"https://api.github.com/users/ahorek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahorek/subscriptions","organizations_url":"https://api.github.com/users/ahorek/orgs","repos_url":"https://api.github.com/users/ahorek/repos","events_url":"https://api.github.com/users/ahorek/events{/privacy}","received_events_url":"https://api.github.com/users/ahorek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-03T02:07:23Z","updated_at":"2018-10-12T06:17:34Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/jruby/jruby/pulls/5343","html_url":"https://github.com/jruby/jruby/pull/5343","diff_url":"https://github.com/jruby/jruby/pull/5343.diff","patch_url":"https://github.com/jruby/jruby/pull/5343.patch"},"body":"```\r\n     ARY = Array.new(100) { |i| i }\r\n      class Integer\r\n        def == other\r\n          ARY.replace([])\r\n          self.equal?(other)\r\n        end\r\n      end\r\n      ARY.count(42) == 0\r\n\r\n=> true\r\n```\r\n\r\n\r\nunfortunatelly isMethodBuiltin is very expensive\r\n```\r\nrequire 'benchmark/ips'\r\na = Array.new(200, 6)\r\n\r\nBenchmark.ips do |x|\r\n  x.report('include') { a.include?(5) }\r\nend\r\n```\r\n\r\nmaster\r\n```\r\n 1.044M (± 7.3%) i/s -      5.211M in   5.023214s\r\n```\r\nthis patch\r\n```\r\n 462.594k (± 3.2%) i/s -      2.319M in   5.019374s\r\n```\r\nmri\r\n```\r\n 681.590k (± 9.3%) i/s -      3.389M in   5.020591s\r\n```"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/429216481","html_url":"https://github.com/jruby/jruby/pull/5343#issuecomment-429216481","issue_url":"https://api.github.com/repos/jruby/jruby/issues/5343","id":429216481,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTIxNjQ4MQ==","user":{"login":"kares","id":45967,"node_id":"MDQ6VXNlcjQ1OTY3","avatar_url":"https://avatars0.githubusercontent.com/u/45967?v=4","gravatar_id":"","url":"https://api.github.com/users/kares","html_url":"https://github.com/kares","followers_url":"https://api.github.com/users/kares/followers","following_url":"https://api.github.com/users/kares/following{/other_user}","gists_url":"https://api.github.com/users/kares/gists{/gist_id}","starred_url":"https://api.github.com/users/kares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kares/subscriptions","organizations_url":"https://api.github.com/users/kares/orgs","repos_url":"https://api.github.com/users/kares/repos","events_url":"https://api.github.com/users/kares/events{/privacy}","received_events_url":"https://api.github.com/users/kares/received_events","type":"User","site_admin":false},"created_at":"2018-10-12T06:17:34Z","updated_at":"2018-10-12T06:17:34Z","author_association":"MEMBER","body":"looks reasonably good, do you happen to know which part is slowest, maybe the `isRefinement` check?"}}
{"actor":{"display_login":"kares"}}