{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/48701610","id":48701610,"diff_hunk":"@@ -25,7 +25,7 @@ def empty?\n       end\n \n       def self.empty\n-        new(nil, nil)\n+        @empty ||= new(nil, nil).freeze","path":"activerecord/lib/active_record/relation/from_clause.rb","position":5,"original_position":5,"commit_id":"b0529e7620a54b9f42826fc466efab6f6c6fc05a","original_commit_id":"b0529e7620a54b9f42826fc466efab6f6c6fc05a","user":{"login":"sgrif","id":1529387,"avatar_url":"https://avatars.githubusercontent.com/u/1529387?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrif","html_url":"https://github.com/sgrif","followers_url":"https://api.github.com/users/sgrif/followers","following_url":"https://api.github.com/users/sgrif/following{/other_user}","gists_url":"https://api.github.com/users/sgrif/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrif/subscriptions","organizations_url":"https://api.github.com/users/sgrif/orgs","repos_url":"https://api.github.com/users/sgrif/repos","events_url":"https://api.github.com/users/sgrif/events{/privacy}","received_events_url":"https://api.github.com/users/sgrif/received_events","type":"User","site_admin":false},"body":"Same comment applies here as my comment on `WhereClause`","created_at":"2016-01-04T02:45:23Z","updated_at":"2016-01-04T02:45:23Z","html_url":"https://github.com/rails/rails/pull/22550#discussion_r48701610","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/22550","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/48701610"},"html":{"href":"https://github.com/rails/rails/pull/22550#discussion_r48701610"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/22550"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/22550","id":53281732,"html_url":"https://github.com/rails/rails/pull/22550","diff_url":"https://github.com/rails/rails/pull/22550.diff","patch_url":"https://github.com/rails/rails/pull/22550.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/22550","number":22550,"state":"open","locked":false,"title":"activerecord: allocate fewer objects","user":{"login":"tamird","id":1535036,"avatar_url":"https://avatars.githubusercontent.com/u/1535036?v=3","gravatar_id":"","url":"https://api.github.com/users/tamird","html_url":"https://github.com/tamird","followers_url":"https://api.github.com/users/tamird/followers","following_url":"https://api.github.com/users/tamird/following{/other_user}","gists_url":"https://api.github.com/users/tamird/gists{/gist_id}","starred_url":"https://api.github.com/users/tamird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamird/subscriptions","organizations_url":"https://api.github.com/users/tamird/orgs","repos_url":"https://api.github.com/users/tamird/repos","events_url":"https://api.github.com/users/tamird/events{/privacy}","received_events_url":"https://api.github.com/users/tamird/received_events","type":"User","site_admin":false},"body":"Reopening #19588 because I no longer have push access to the repo from which that PR was opened.","created_at":"2015-12-10T16:28:26Z","updated_at":"2016-01-04T02:45:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fff2f64aa524c512c5c56046a763ab94856449f0","assignee":{"login":"pixeltrix","id":6321,"avatar_url":"https://avatars.githubusercontent.com/u/6321?v=3","gravatar_id":"","url":"https://api.github.com/users/pixeltrix","html_url":"https://github.com/pixeltrix","followers_url":"https://api.github.com/users/pixeltrix/followers","following_url":"https://api.github.com/users/pixeltrix/following{/other_user}","gists_url":"https://api.github.com/users/pixeltrix/gists{/gist_id}","starred_url":"https://api.github.com/users/pixeltrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixeltrix/subscriptions","organizations_url":"https://api.github.com/users/pixeltrix/orgs","repos_url":"https://api.github.com/users/pixeltrix/repos","events_url":"https://api.github.com/users/pixeltrix/events{/privacy}","received_events_url":"https://api.github.com/users/pixeltrix/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/22550/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/22550/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/22550/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/b0529e7620a54b9f42826fc466efab6f6c6fc05a","head":{"label":"tamird:record-fetch-warning-allocate-less","ref":"record-fetch-warning-allocate-less","sha":"b0529e7620a54b9f42826fc466efab6f6c6fc05a","user":{"login":"tamird","id":1535036,"avatar_url":"https://avatars.githubusercontent.com/u/1535036?v=3","gravatar_id":"","url":"https://api.github.com/users/tamird","html_url":"https://github.com/tamird","followers_url":"https://api.github.com/users/tamird/followers","following_url":"https://api.github.com/users/tamird/following{/other_user}","gists_url":"https://api.github.com/users/tamird/gists{/gist_id}","starred_url":"https://api.github.com/users/tamird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamird/subscriptions","organizations_url":"https://api.github.com/users/tamird/orgs","repos_url":"https://api.github.com/users/tamird/repos","events_url":"https://api.github.com/users/tamird/events{/privacy}","received_events_url":"https://api.github.com/users/tamird/received_events","type":"User","site_admin":false},"repo":{"id":34094555,"name":"rails","full_name":"tamird/rails","owner":{"login":"tamird","id":1535036,"avatar_url":"https://avatars.githubusercontent.com/u/1535036?v=3","gravatar_id":"","url":"https://api.github.com/users/tamird","html_url":"https://github.com/tamird","followers_url":"https://api.github.com/users/tamird/followers","following_url":"https://api.github.com/users/tamird/following{/other_user}","gists_url":"https://api.github.com/users/tamird/gists{/gist_id}","starred_url":"https://api.github.com/users/tamird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamird/subscriptions","organizations_url":"https://api.github.com/users/tamird/orgs","repos_url":"https://api.github.com/users/tamird/repos","events_url":"https://api.github.com/users/tamird/events{/privacy}","received_events_url":"https://api.github.com/users/tamird/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tamird/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/tamird/rails","forks_url":"https://api.github.com/repos/tamird/rails/forks","keys_url":"https://api.github.com/repos/tamird/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tamird/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tamird/rails/teams","hooks_url":"https://api.github.com/repos/tamird/rails/hooks","issue_events_url":"https://api.github.com/repos/tamird/rails/issues/events{/number}","events_url":"https://api.github.com/repos/tamird/rails/events","assignees_url":"https://api.github.com/repos/tamird/rails/assignees{/user}","branches_url":"https://api.github.com/repos/tamird/rails/branches{/branch}","tags_url":"https://api.github.com/repos/tamird/rails/tags","blobs_url":"https://api.github.com/repos/tamird/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tamird/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tamird/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/tamird/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tamird/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/tamird/rails/languages","stargazers_url":"https://api.github.com/repos/tamird/rails/stargazers","contributors_url":"https://api.github.com/repos/tamird/rails/contributors","subscribers_url":"https://api.github.com/repos/tamird/rails/subscribers","subscription_url":"https://api.github.com/repos/tamird/rails/subscription","commits_url":"https://api.github.com/repos/tamird/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/tamird/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/tamird/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/tamird/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/tamird/rails/contents/{+path}","compare_url":"https://api.github.com/repos/tamird/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tamird/rails/merges","archive_url":"https://api.github.com/repos/tamird/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tamird/rails/downloads","issues_url":"https://api.github.com/repos/tamird/rails/issues{/number}","pulls_url":"https://api.github.com/repos/tamird/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/tamird/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/tamird/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tamird/rails/labels{/name}","releases_url":"https://api.github.com/repos/tamird/rails/releases{/id}","created_at":"2015-04-17T03:30:12Z","updated_at":"2015-04-17T03:30:43Z","pushed_at":"2015-12-28T19:53:59Z","git_url":"git://github.com/tamird/rails.git","ssh_url":"git@github.com:tamird/rails.git","clone_url":"https://github.com/tamird/rails.git","svn_url":"https://github.com/tamird/rails","homepage":"http://rubyonrails.org","size":120347,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"rails:master","ref":"master","sha":"0d2675f84f54504e5ba25b2f53b00bac239ef393","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2016-01-04T01:04:49Z","pushed_at":"2016-01-03T23:23:51Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":320421,"stargazers_count":29000,"watchers_count":29000,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11741,"mirror_url":null,"open_issues_count":859,"forks":11741,"open_issues":859,"watchers":29000,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/22550"},"html":{"href":"https://github.com/rails/rails/pull/22550"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/22550"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/22550/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/22550/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/22550/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/b0529e7620a54b9f42826fc466efab6f6c6fc05a"}}}}