{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/oschwald/maxminddb-golang/pulls/7","id":28314022,"html_url":"https://github.com/oschwald/maxminddb-golang/pull/7","diff_url":"https://github.com/oschwald/maxminddb-golang/pull/7.diff","patch_url":"https://github.com/oschwald/maxminddb-golang/pull/7.patch","issue_url":"https://api.github.com/repos/oschwald/maxminddb-golang/issues/7","number":7,"state":"open","locked":false,"title":"Cache the name->struct field mapping.","user":{"login":"alicebob","id":621306,"avatar_url":"https://avatars.githubusercontent.com/u/621306?v=3","gravatar_id":"","url":"https://api.github.com/users/alicebob","html_url":"https://github.com/alicebob","followers_url":"https://api.github.com/users/alicebob/followers","following_url":"https://api.github.com/users/alicebob/following{/other_user}","gists_url":"https://api.github.com/users/alicebob/gists{/gist_id}","starred_url":"https://api.github.com/users/alicebob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicebob/subscriptions","organizations_url":"https://api.github.com/users/alicebob/orgs","repos_url":"https://api.github.com/users/alicebob/repos","events_url":"https://api.github.com/users/alicebob/events{/privacy}","received_events_url":"https://api.github.com/users/alicebob/received_events","type":"User","site_admin":false},"body":"Almost halves the allocs and almost doubles the speed in my test case.","created_at":"2015-01-29T20:58:10Z","updated_at":"2015-01-29T20:58:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/oschwald/maxminddb-golang/pulls/7/commits","review_comments_url":"https://api.github.com/repos/oschwald/maxminddb-golang/pulls/7/comments","review_comment_url":"https://api.github.com/repos/oschwald/maxminddb-golang/pulls/comments/{number}","comments_url":"https://api.github.com/repos/oschwald/maxminddb-golang/issues/7/comments","statuses_url":"https://api.github.com/repos/oschwald/maxminddb-golang/statuses/aa25c243c09e1a075cb3f97d2e124c46966bf5e6","head":{"label":"alicebob:cachetype","ref":"cachetype","sha":"aa25c243c09e1a075cb3f97d2e124c46966bf5e6","user":{"login":"alicebob","id":621306,"avatar_url":"https://avatars.githubusercontent.com/u/621306?v=3","gravatar_id":"","url":"https://api.github.com/users/alicebob","html_url":"https://github.com/alicebob","followers_url":"https://api.github.com/users/alicebob/followers","following_url":"https://api.github.com/users/alicebob/following{/other_user}","gists_url":"https://api.github.com/users/alicebob/gists{/gist_id}","starred_url":"https://api.github.com/users/alicebob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicebob/subscriptions","organizations_url":"https://api.github.com/users/alicebob/orgs","repos_url":"https://api.github.com/users/alicebob/repos","events_url":"https://api.github.com/users/alicebob/events{/privacy}","received_events_url":"https://api.github.com/users/alicebob/received_events","type":"User","site_admin":false},"repo":{"id":30040858,"name":"maxminddb-golang","full_name":"alicebob/maxminddb-golang","owner":{"login":"alicebob","id":621306,"avatar_url":"https://avatars.githubusercontent.com/u/621306?v=3","gravatar_id":"","url":"https://api.github.com/users/alicebob","html_url":"https://github.com/alicebob","followers_url":"https://api.github.com/users/alicebob/followers","following_url":"https://api.github.com/users/alicebob/following{/other_user}","gists_url":"https://api.github.com/users/alicebob/gists{/gist_id}","starred_url":"https://api.github.com/users/alicebob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicebob/subscriptions","organizations_url":"https://api.github.com/users/alicebob/orgs","repos_url":"https://api.github.com/users/alicebob/repos","events_url":"https://api.github.com/users/alicebob/events{/privacy}","received_events_url":"https://api.github.com/users/alicebob/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alicebob/maxminddb-golang","description":"MaxMind DB Reader for Go","fork":true,"url":"https://api.github.com/repos/alicebob/maxminddb-golang","forks_url":"https://api.github.com/repos/alicebob/maxminddb-golang/forks","keys_url":"https://api.github.com/repos/alicebob/maxminddb-golang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alicebob/maxminddb-golang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alicebob/maxminddb-golang/teams","hooks_url":"https://api.github.com/repos/alicebob/maxminddb-golang/hooks","issue_events_url":"https://api.github.com/repos/alicebob/maxminddb-golang/issues/events{/number}","events_url":"https://api.github.com/repos/alicebob/maxminddb-golang/events","assignees_url":"https://api.github.com/repos/alicebob/maxminddb-golang/assignees{/user}","branches_url":"https://api.github.com/repos/alicebob/maxminddb-golang/branches{/branch}","tags_url":"https://api.github.com/repos/alicebob/maxminddb-golang/tags","blobs_url":"https://api.github.com/repos/alicebob/maxminddb-golang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alicebob/maxminddb-golang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alicebob/maxminddb-golang/git/refs{/sha}","trees_url":"https://api.github.com/repos/alicebob/maxminddb-golang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alicebob/maxminddb-golang/statuses/{sha}","languages_url":"https://api.github.com/repos/alicebob/maxminddb-golang/languages","stargazers_url":"https://api.github.com/repos/alicebob/maxminddb-golang/stargazers","contributors_url":"https://api.github.com/repos/alicebob/maxminddb-golang/contributors","subscribers_url":"https://api.github.com/repos/alicebob/maxminddb-golang/subscribers","subscription_url":"https://api.github.com/repos/alicebob/maxminddb-golang/subscription","commits_url":"https://api.github.com/repos/alicebob/maxminddb-golang/commits{/sha}","git_commits_url":"https://api.github.com/repos/alicebob/maxminddb-golang/git/commits{/sha}","comments_url":"https://api.github.com/repos/alicebob/maxminddb-golang/comments{/number}","issue_comment_url":"https://api.github.com/repos/alicebob/maxminddb-golang/issues/comments/{number}","contents_url":"https://api.github.com/repos/alicebob/maxminddb-golang/contents/{+path}","compare_url":"https://api.github.com/repos/alicebob/maxminddb-golang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alicebob/maxminddb-golang/merges","archive_url":"https://api.github.com/repos/alicebob/maxminddb-golang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alicebob/maxminddb-golang/downloads","issues_url":"https://api.github.com/repos/alicebob/maxminddb-golang/issues{/number}","pulls_url":"https://api.github.com/repos/alicebob/maxminddb-golang/pulls{/number}","milestones_url":"https://api.github.com/repos/alicebob/maxminddb-golang/milestones{/number}","notifications_url":"https://api.github.com/repos/alicebob/maxminddb-golang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alicebob/maxminddb-golang/labels{/name}","releases_url":"https://api.github.com/repos/alicebob/maxminddb-golang/releases{/id}","created_at":"2015-01-29T20:55:59Z","updated_at":"2015-01-29T20:55:59Z","pushed_at":"2015-01-29T20:56:47Z","git_url":"git://github.com/alicebob/maxminddb-golang.git","ssh_url":"git@github.com:alicebob/maxminddb-golang.git","clone_url":"https://github.com/alicebob/maxminddb-golang.git","svn_url":"https://github.com/alicebob/maxminddb-golang","homepage":null,"size":606,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"oschwald:master","ref":"master","sha":"81c4e045a5fb2dd66cde4a995a5591d79315efa3","user":{"login":"oschwald","id":278835,"avatar_url":"https://avatars.githubusercontent.com/u/278835?v=3","gravatar_id":"","url":"https://api.github.com/users/oschwald","html_url":"https://github.com/oschwald","followers_url":"https://api.github.com/users/oschwald/followers","following_url":"https://api.github.com/users/oschwald/following{/other_user}","gists_url":"https://api.github.com/users/oschwald/gists{/gist_id}","starred_url":"https://api.github.com/users/oschwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oschwald/subscriptions","organizations_url":"https://api.github.com/users/oschwald/orgs","repos_url":"https://api.github.com/users/oschwald/repos","events_url":"https://api.github.com/users/oschwald/events{/privacy}","received_events_url":"https://api.github.com/users/oschwald/received_events","type":"User","site_admin":false},"repo":{"id":16896900,"name":"maxminddb-golang","full_name":"oschwald/maxminddb-golang","owner":{"login":"oschwald","id":278835,"avatar_url":"https://avatars.githubusercontent.com/u/278835?v=3","gravatar_id":"","url":"https://api.github.com/users/oschwald","html_url":"https://github.com/oschwald","followers_url":"https://api.github.com/users/oschwald/followers","following_url":"https://api.github.com/users/oschwald/following{/other_user}","gists_url":"https://api.github.com/users/oschwald/gists{/gist_id}","starred_url":"https://api.github.com/users/oschwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oschwald/subscriptions","organizations_url":"https://api.github.com/users/oschwald/orgs","repos_url":"https://api.github.com/users/oschwald/repos","events_url":"https://api.github.com/users/oschwald/events{/privacy}","received_events_url":"https://api.github.com/users/oschwald/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oschwald/maxminddb-golang","description":"MaxMind DB Reader for Go","fork":false,"url":"https://api.github.com/repos/oschwald/maxminddb-golang","forks_url":"https://api.github.com/repos/oschwald/maxminddb-golang/forks","keys_url":"https://api.github.com/repos/oschwald/maxminddb-golang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oschwald/maxminddb-golang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oschwald/maxminddb-golang/teams","hooks_url":"https://api.github.com/repos/oschwald/maxminddb-golang/hooks","issue_events_url":"https://api.github.com/repos/oschwald/maxminddb-golang/issues/events{/number}","events_url":"https://api.github.com/repos/oschwald/maxminddb-golang/events","assignees_url":"https://api.github.com/repos/oschwald/maxminddb-golang/assignees{/user}","branches_url":"https://api.github.com/repos/oschwald/maxminddb-golang/branches{/branch}","tags_url":"https://api.github.com/repos/oschwald/maxminddb-golang/tags","blobs_url":"https://api.github.com/repos/oschwald/maxminddb-golang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oschwald/maxminddb-golang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oschwald/maxminddb-golang/git/refs{/sha}","trees_url":"https://api.github.com/repos/oschwald/maxminddb-golang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oschwald/maxminddb-golang/statuses/{sha}","languages_url":"https://api.github.com/repos/oschwald/maxminddb-golang/languages","stargazers_url":"https://api.github.com/repos/oschwald/maxminddb-golang/stargazers","contributors_url":"https://api.github.com/repos/oschwald/maxminddb-golang/contributors","subscribers_url":"https://api.github.com/repos/oschwald/maxminddb-golang/subscribers","subscription_url":"https://api.github.com/repos/oschwald/maxminddb-golang/subscription","commits_url":"https://api.github.com/repos/oschwald/maxminddb-golang/commits{/sha}","git_commits_url":"https://api.github.com/repos/oschwald/maxminddb-golang/git/commits{/sha}","comments_url":"https://api.github.com/repos/oschwald/maxminddb-golang/comments{/number}","issue_comment_url":"https://api.github.com/repos/oschwald/maxminddb-golang/issues/comments/{number}","contents_url":"https://api.github.com/repos/oschwald/maxminddb-golang/contents/{+path}","compare_url":"https://api.github.com/repos/oschwald/maxminddb-golang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oschwald/maxminddb-golang/merges","archive_url":"https://api.github.com/repos/oschwald/maxminddb-golang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oschwald/maxminddb-golang/downloads","issues_url":"https://api.github.com/repos/oschwald/maxminddb-golang/issues{/number}","pulls_url":"https://api.github.com/repos/oschwald/maxminddb-golang/pulls{/number}","milestones_url":"https://api.github.com/repos/oschwald/maxminddb-golang/milestones{/number}","notifications_url":"https://api.github.com/repos/oschwald/maxminddb-golang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oschwald/maxminddb-golang/labels{/name}","releases_url":"https://api.github.com/repos/oschwald/maxminddb-golang/releases{/id}","created_at":"2014-02-16T23:35:39Z","updated_at":"2015-01-15T06:19:26Z","pushed_at":"2014-11-22T22:07:48Z","git_url":"git://github.com/oschwald/maxminddb-golang.git","ssh_url":"git@github.com:oschwald/maxminddb-golang.git","clone_url":"https://github.com/oschwald/maxminddb-golang.git","svn_url":"https://github.com/oschwald/maxminddb-golang","homepage":null,"size":606,"stargazers_count":22,"watchers_count":22,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/oschwald/maxminddb-golang/pulls/7"},"html":{"href":"https://github.com/oschwald/maxminddb-golang/pull/7"},"issue":{"href":"https://api.github.com/repos/oschwald/maxminddb-golang/issues/7"},"comments":{"href":"https://api.github.com/repos/oschwald/maxminddb-golang/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/oschwald/maxminddb-golang/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/oschwald/maxminddb-golang/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/oschwald/maxminddb-golang/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/oschwald/maxminddb-golang/statuses/aa25c243c09e1a075cb3f97d2e124c46966bf5e6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":19,"deletions":13,"changed_files":1}}