{"action":"created","comment":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments/38807560","id":38807560,"diff_hunk":"@@ -23,6 +23,10 @@ def initialize(hash = {}, loaded_path = nil)\n       super(hash)\n     end\n \n+    def to_s\n+      @to_s ||= __getobj__.to_s","path":"lib/rubocop/config.rb","position":5,"original_position":5,"commit_id":"5806b71f43a7c959afd42c970f82f25870105edf","original_commit_id":"5806b71f43a7c959afd42c970f82f25870105edf","user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"body":"Yeah, it does.","created_at":"2015-09-05T04:56:05Z","updated_at":"2015-09-05T04:56:05Z","html_url":"https://github.com/bbatsov/rubocop/pull/2211#discussion_r38807560","pull_request_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2211","_links":{"self":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments/38807560"},"html":{"href":"https://github.com/bbatsov/rubocop/pull/2211#discussion_r38807560"},"pull_request":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/2211"}}},"pull_request":{"url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2211","id":44256968,"html_url":"https://github.com/bbatsov/rubocop/pull/2211","diff_url":"https://github.com/bbatsov/rubocop/pull/2211.diff","patch_url":"https://github.com/bbatsov/rubocop/pull/2211.patch","issue_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2211","number":2211,"state":"closed","locked":false,"title":"Memoize Config#to_s","user":{"login":"bquorning","id":22333,"avatar_url":"https://avatars.githubusercontent.com/u/22333?v=3","gravatar_id":"","url":"https://api.github.com/users/bquorning","html_url":"https://github.com/bquorning","followers_url":"https://api.github.com/users/bquorning/followers","following_url":"https://api.github.com/users/bquorning/following{/other_user}","gists_url":"https://api.github.com/users/bquorning/gists{/gist_id}","starred_url":"https://api.github.com/users/bquorning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bquorning/subscriptions","organizations_url":"https://api.github.com/users/bquorning/orgs","repos_url":"https://api.github.com/users/bquorning/repos","events_url":"https://api.github.com/users/bquorning/events{/privacy}","received_events_url":"https://api.github.com/users/bquorning/received_events","type":"User","site_admin":false},"body":"`ResultCache#file_checksum` is calling this method *a lot*. Profiling is fun :muscle: \r\n\r\nTested with `time rubocop` on my usual ~2500 files:\r\n\r\n    Before (warm cache):\r\n    rubocop  6.24s user 0.45s system 99% cpu 6.710 total\r\n\r\n    After (warm cache):\r\n    rubocop  1.37s user 0.37s system 99% cpu 1.750 total\r\n\r\nNo changelog entry, since it just an improvement on an unreleased feature.","created_at":"2015-09-04T20:12:01Z","updated_at":"2015-09-05T04:56:05Z","closed_at":"2015-09-05T04:55:53Z","merged_at":"2015-09-05T04:55:53Z","merge_commit_sha":"5d52c2638329506a989c77c4b1b34c876904b46d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2211/commits","review_comments_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/2211/comments","review_comment_url":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/issues/2211/comments","statuses_url":"https://api.github.com/repos/bbatsov/rubocop/statuses/5806b71f43a7c959afd42c970f82f25870105edf","head":{"label":"bquorning:memoize-config-to-s","ref":"memoize-config-to-s","sha":"5806b71f43a7c959afd42c970f82f25870105edf","user":{"login":"bquorning","id":22333,"avatar_url":"https://avatars.githubusercontent.com/u/22333?v=3","gravatar_id":"","url":"https://api.github.com/users/bquorning","html_url":"https://github.com/bquorning","followers_url":"https://api.github.com/users/bquorning/followers","following_url":"https://api.github.com/users/bquorning/following{/other_user}","gists_url":"https://api.github.com/users/bquorning/gists{/gist_id}","starred_url":"https://api.github.com/users/bquorning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bquorning/subscriptions","organizations_url":"https://api.github.com/users/bquorning/orgs","repos_url":"https://api.github.com/users/bquorning/repos","events_url":"https://api.github.com/users/bquorning/events{/privacy}","received_events_url":"https://api.github.com/users/bquorning/received_events","type":"User","site_admin":false},"repo":{"id":12640527,"name":"rubocop","full_name":"bquorning/rubocop","owner":{"login":"bquorning","id":22333,"avatar_url":"https://avatars.githubusercontent.com/u/22333?v=3","gravatar_id":"","url":"https://api.github.com/users/bquorning","html_url":"https://github.com/bquorning","followers_url":"https://api.github.com/users/bquorning/followers","following_url":"https://api.github.com/users/bquorning/following{/other_user}","gists_url":"https://api.github.com/users/bquorning/gists{/gist_id}","starred_url":"https://api.github.com/users/bquorning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bquorning/subscriptions","organizations_url":"https://api.github.com/users/bquorning/orgs","repos_url":"https://api.github.com/users/bquorning/repos","events_url":"https://api.github.com/users/bquorning/events{/privacy}","received_events_url":"https://api.github.com/users/bquorning/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bquorning/rubocop","description":"An experimental Ruby code analyzer, based on the community Ruby style guide.","fork":true,"url":"https://api.github.com/repos/bquorning/rubocop","forks_url":"https://api.github.com/repos/bquorning/rubocop/forks","keys_url":"https://api.github.com/repos/bquorning/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bquorning/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bquorning/rubocop/teams","hooks_url":"https://api.github.com/repos/bquorning/rubocop/hooks","issue_events_url":"https://api.github.com/repos/bquorning/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/bquorning/rubocop/events","assignees_url":"https://api.github.com/repos/bquorning/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/bquorning/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/bquorning/rubocop/tags","blobs_url":"https://api.github.com/repos/bquorning/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bquorning/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bquorning/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/bquorning/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bquorning/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/bquorning/rubocop/languages","stargazers_url":"https://api.github.com/repos/bquorning/rubocop/stargazers","contributors_url":"https://api.github.com/repos/bquorning/rubocop/contributors","subscribers_url":"https://api.github.com/repos/bquorning/rubocop/subscribers","subscription_url":"https://api.github.com/repos/bquorning/rubocop/subscription","commits_url":"https://api.github.com/repos/bquorning/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/bquorning/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/bquorning/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/bquorning/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/bquorning/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/bquorning/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bquorning/rubocop/merges","archive_url":"https://api.github.com/repos/bquorning/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bquorning/rubocop/downloads","issues_url":"https://api.github.com/repos/bquorning/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/bquorning/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/bquorning/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/bquorning/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bquorning/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/bquorning/rubocop/releases{/id}","created_at":"2013-09-06T09:24:28Z","updated_at":"2015-03-18T19:18:40Z","pushed_at":"2015-09-04T19:58:40Z","git_url":"git://github.com/bquorning/rubocop.git","ssh_url":"git@github.com:bquorning/rubocop.git","clone_url":"https://github.com/bquorning/rubocop.git","svn_url":"https://github.com/bquorning/rubocop","homepage":"http://batsov.com/rubocop","size":10433,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bbatsov:master","ref":"master","sha":"b176e6cbf8620c38893d009951c98db5f953b9a3","user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"repo":{"id":4095287,"name":"rubocop","full_name":"bbatsov/rubocop","owner":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbatsov/rubocop","description":"A Ruby static code analyzer, based on the community Ruby style guide.","fork":false,"url":"https://api.github.com/repos/bbatsov/rubocop","forks_url":"https://api.github.com/repos/bbatsov/rubocop/forks","keys_url":"https://api.github.com/repos/bbatsov/rubocop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbatsov/rubocop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbatsov/rubocop/teams","hooks_url":"https://api.github.com/repos/bbatsov/rubocop/hooks","issue_events_url":"https://api.github.com/repos/bbatsov/rubocop/issues/events{/number}","events_url":"https://api.github.com/repos/bbatsov/rubocop/events","assignees_url":"https://api.github.com/repos/bbatsov/rubocop/assignees{/user}","branches_url":"https://api.github.com/repos/bbatsov/rubocop/branches{/branch}","tags_url":"https://api.github.com/repos/bbatsov/rubocop/tags","blobs_url":"https://api.github.com/repos/bbatsov/rubocop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbatsov/rubocop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbatsov/rubocop/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbatsov/rubocop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbatsov/rubocop/statuses/{sha}","languages_url":"https://api.github.com/repos/bbatsov/rubocop/languages","stargazers_url":"https://api.github.com/repos/bbatsov/rubocop/stargazers","contributors_url":"https://api.github.com/repos/bbatsov/rubocop/contributors","subscribers_url":"https://api.github.com/repos/bbatsov/rubocop/subscribers","subscription_url":"https://api.github.com/repos/bbatsov/rubocop/subscription","commits_url":"https://api.github.com/repos/bbatsov/rubocop/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbatsov/rubocop/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbatsov/rubocop/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbatsov/rubocop/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbatsov/rubocop/contents/{+path}","compare_url":"https://api.github.com/repos/bbatsov/rubocop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbatsov/rubocop/merges","archive_url":"https://api.github.com/repos/bbatsov/rubocop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbatsov/rubocop/downloads","issues_url":"https://api.github.com/repos/bbatsov/rubocop/issues{/number}","pulls_url":"https://api.github.com/repos/bbatsov/rubocop/pulls{/number}","milestones_url":"https://api.github.com/repos/bbatsov/rubocop/milestones{/number}","notifications_url":"https://api.github.com/repos/bbatsov/rubocop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbatsov/rubocop/labels{/name}","releases_url":"https://api.github.com/repos/bbatsov/rubocop/releases{/id}","created_at":"2012-04-21T10:09:58Z","updated_at":"2015-09-05T02:41:40Z","pushed_at":"2015-09-05T04:55:54Z","git_url":"git://github.com/bbatsov/rubocop.git","ssh_url":"git@github.com:bbatsov/rubocop.git","clone_url":"https://github.com/bbatsov/rubocop.git","svn_url":"https://github.com/bbatsov/rubocop","homepage":"","size":21137,"stargazers_count":5059,"watchers_count":5059,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":579,"mirror_url":null,"open_issues_count":88,"forks":579,"open_issues":88,"watchers":5059,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/2211"},"html":{"href":"https://github.com/bbatsov/rubocop/pull/2211"},"issue":{"href":"https://api.github.com/repos/bbatsov/rubocop/issues/2211"},"comments":{"href":"https://api.github.com/repos/bbatsov/rubocop/issues/2211/comments"},"review_comments":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/2211/comments"},"review_comment":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbatsov/rubocop/pulls/2211/commits"},"statuses":{"href":"https://api.github.com/repos/bbatsov/rubocop/statuses/5806b71f43a7c959afd42c970f82f25870105edf"}}}}