{"action":"opened","number":11,"pull_request":{"url":"https://api.github.com/repos/amphp/uri/pulls/11","id":146021020,"html_url":"https://github.com/amphp/uri/pull/11","diff_url":"https://github.com/amphp/uri/pull/11.diff","patch_url":"https://github.com/amphp/uri/pull/11.patch","issue_url":"https://api.github.com/repos/amphp/uri/issues/11","number":11,"state":"open","locked":false,"title":"Cache last parsed host","user":{"login":"kelunik","id":2743004,"avatar_url":"https://avatars0.githubusercontent.com/u/2743004?v=4","gravatar_id":"","url":"https://api.github.com/users/kelunik","html_url":"https://github.com/kelunik","followers_url":"https://api.github.com/users/kelunik/followers","following_url":"https://api.github.com/users/kelunik/following{/other_user}","gists_url":"https://api.github.com/users/kelunik/gists{/gist_id}","starred_url":"https://api.github.com/users/kelunik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelunik/subscriptions","organizations_url":"https://api.github.com/users/kelunik/orgs","repos_url":"https://api.github.com/users/kelunik/repos","events_url":"https://api.github.com/users/kelunik/events{/privacy}","received_events_url":"https://api.github.com/users/kelunik/received_events","type":"User","site_admin":false},"body":"Artax re-parses the same host multiple times, because it's parsed in Artax, then parsed in HttpSocketPool, then parsed in BasicSocketPool. All calls happen synchronously, so it makes sense to cache exactly the last parsed host. Other similar uses might benefit, too.\r\n\r\nI'm not sure about benefits for non-benchmarks, but it brings significant benefits in benchmark situations.","created_at":"2017-10-11T18:03:45Z","updated_at":"2017-10-11T18:03:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/amphp/uri/pulls/11/commits","review_comments_url":"https://api.github.com/repos/amphp/uri/pulls/11/comments","review_comment_url":"https://api.github.com/repos/amphp/uri/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amphp/uri/issues/11/comments","statuses_url":"https://api.github.com/repos/amphp/uri/statuses/e19d324421a5cfbd480559dfcd9d3a68fc10ae62","head":{"label":"amphp:host-cache","ref":"host-cache","sha":"e19d324421a5cfbd480559dfcd9d3a68fc10ae62","user":{"login":"amphp","id":8865682,"avatar_url":"https://avatars3.githubusercontent.com/u/8865682?v=4","gravatar_id":"","url":"https://api.github.com/users/amphp","html_url":"https://github.com/amphp","followers_url":"https://api.github.com/users/amphp/followers","following_url":"https://api.github.com/users/amphp/following{/other_user}","gists_url":"https://api.github.com/users/amphp/gists{/gist_id}","starred_url":"https://api.github.com/users/amphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amphp/subscriptions","organizations_url":"https://api.github.com/users/amphp/orgs","repos_url":"https://api.github.com/users/amphp/repos","events_url":"https://api.github.com/users/amphp/events{/privacy}","received_events_url":"https://api.github.com/users/amphp/received_events","type":"Organization","site_admin":false},"repo":{"id":67417878,"name":"uri","full_name":"amphp/uri","owner":{"login":"amphp","id":8865682,"avatar_url":"https://avatars3.githubusercontent.com/u/8865682?v=4","gravatar_id":"","url":"https://api.github.com/users/amphp","html_url":"https://github.com/amphp","followers_url":"https://api.github.com/users/amphp/followers","following_url":"https://api.github.com/users/amphp/following{/other_user}","gists_url":"https://api.github.com/users/amphp/gists{/gist_id}","starred_url":"https://api.github.com/users/amphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amphp/subscriptions","organizations_url":"https://api.github.com/users/amphp/orgs","repos_url":"https://api.github.com/users/amphp/repos","events_url":"https://api.github.com/users/amphp/events{/privacy}","received_events_url":"https://api.github.com/users/amphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amphp/uri","description":"Uri Parser and Resolver.","fork":false,"url":"https://api.github.com/repos/amphp/uri","forks_url":"https://api.github.com/repos/amphp/uri/forks","keys_url":"https://api.github.com/repos/amphp/uri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amphp/uri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amphp/uri/teams","hooks_url":"https://api.github.com/repos/amphp/uri/hooks","issue_events_url":"https://api.github.com/repos/amphp/uri/issues/events{/number}","events_url":"https://api.github.com/repos/amphp/uri/events","assignees_url":"https://api.github.com/repos/amphp/uri/assignees{/user}","branches_url":"https://api.github.com/repos/amphp/uri/branches{/branch}","tags_url":"https://api.github.com/repos/amphp/uri/tags","blobs_url":"https://api.github.com/repos/amphp/uri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amphp/uri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amphp/uri/git/refs{/sha}","trees_url":"https://api.github.com/repos/amphp/uri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amphp/uri/statuses/{sha}","languages_url":"https://api.github.com/repos/amphp/uri/languages","stargazers_url":"https://api.github.com/repos/amphp/uri/stargazers","contributors_url":"https://api.github.com/repos/amphp/uri/contributors","subscribers_url":"https://api.github.com/repos/amphp/uri/subscribers","subscription_url":"https://api.github.com/repos/amphp/uri/subscription","commits_url":"https://api.github.com/repos/amphp/uri/commits{/sha}","git_commits_url":"https://api.github.com/repos/amphp/uri/git/commits{/sha}","comments_url":"https://api.github.com/repos/amphp/uri/comments{/number}","issue_comment_url":"https://api.github.com/repos/amphp/uri/issues/comments{/number}","contents_url":"https://api.github.com/repos/amphp/uri/contents/{+path}","compare_url":"https://api.github.com/repos/amphp/uri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amphp/uri/merges","archive_url":"https://api.github.com/repos/amphp/uri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amphp/uri/downloads","issues_url":"https://api.github.com/repos/amphp/uri/issues{/number}","pulls_url":"https://api.github.com/repos/amphp/uri/pulls{/number}","milestones_url":"https://api.github.com/repos/amphp/uri/milestones{/number}","notifications_url":"https://api.github.com/repos/amphp/uri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amphp/uri/labels{/name}","releases_url":"https://api.github.com/repos/amphp/uri/releases{/id}","deployments_url":"https://api.github.com/repos/amphp/uri/deployments","created_at":"2016-09-05T12:12:31Z","updated_at":"2017-08-28T15:17:26Z","pushed_at":"2017-10-11T18:03:31Z","git_url":"git://github.com/amphp/uri.git","ssh_url":"git@github.com:amphp/uri.git","clone_url":"https://github.com/amphp/uri.git","svn_url":"https://github.com/amphp/uri","homepage":null,"size":20,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":4,"default_branch":"master"}},"base":{"label":"amphp:master","ref":"master","sha":"0ebec68d70f5db01af14fef4da0a8b80b2cf10ee","user":{"login":"amphp","id":8865682,"avatar_url":"https://avatars3.githubusercontent.com/u/8865682?v=4","gravatar_id":"","url":"https://api.github.com/users/amphp","html_url":"https://github.com/amphp","followers_url":"https://api.github.com/users/amphp/followers","following_url":"https://api.github.com/users/amphp/following{/other_user}","gists_url":"https://api.github.com/users/amphp/gists{/gist_id}","starred_url":"https://api.github.com/users/amphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amphp/subscriptions","organizations_url":"https://api.github.com/users/amphp/orgs","repos_url":"https://api.github.com/users/amphp/repos","events_url":"https://api.github.com/users/amphp/events{/privacy}","received_events_url":"https://api.github.com/users/amphp/received_events","type":"Organization","site_admin":false},"repo":{"id":67417878,"name":"uri","full_name":"amphp/uri","owner":{"login":"amphp","id":8865682,"avatar_url":"https://avatars3.githubusercontent.com/u/8865682?v=4","gravatar_id":"","url":"https://api.github.com/users/amphp","html_url":"https://github.com/amphp","followers_url":"https://api.github.com/users/amphp/followers","following_url":"https://api.github.com/users/amphp/following{/other_user}","gists_url":"https://api.github.com/users/amphp/gists{/gist_id}","starred_url":"https://api.github.com/users/amphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amphp/subscriptions","organizations_url":"https://api.github.com/users/amphp/orgs","repos_url":"https://api.github.com/users/amphp/repos","events_url":"https://api.github.com/users/amphp/events{/privacy}","received_events_url":"https://api.github.com/users/amphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amphp/uri","description":"Uri Parser and Resolver.","fork":false,"url":"https://api.github.com/repos/amphp/uri","forks_url":"https://api.github.com/repos/amphp/uri/forks","keys_url":"https://api.github.com/repos/amphp/uri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amphp/uri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amphp/uri/teams","hooks_url":"https://api.github.com/repos/amphp/uri/hooks","issue_events_url":"https://api.github.com/repos/amphp/uri/issues/events{/number}","events_url":"https://api.github.com/repos/amphp/uri/events","assignees_url":"https://api.github.com/repos/amphp/uri/assignees{/user}","branches_url":"https://api.github.com/repos/amphp/uri/branches{/branch}","tags_url":"https://api.github.com/repos/amphp/uri/tags","blobs_url":"https://api.github.com/repos/amphp/uri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amphp/uri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amphp/uri/git/refs{/sha}","trees_url":"https://api.github.com/repos/amphp/uri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amphp/uri/statuses/{sha}","languages_url":"https://api.github.com/repos/amphp/uri/languages","stargazers_url":"https://api.github.com/repos/amphp/uri/stargazers","contributors_url":"https://api.github.com/repos/amphp/uri/contributors","subscribers_url":"https://api.github.com/repos/amphp/uri/subscribers","subscription_url":"https://api.github.com/repos/amphp/uri/subscription","commits_url":"https://api.github.com/repos/amphp/uri/commits{/sha}","git_commits_url":"https://api.github.com/repos/amphp/uri/git/commits{/sha}","comments_url":"https://api.github.com/repos/amphp/uri/comments{/number}","issue_comment_url":"https://api.github.com/repos/amphp/uri/issues/comments{/number}","contents_url":"https://api.github.com/repos/amphp/uri/contents/{+path}","compare_url":"https://api.github.com/repos/amphp/uri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amphp/uri/merges","archive_url":"https://api.github.com/repos/amphp/uri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amphp/uri/downloads","issues_url":"https://api.github.com/repos/amphp/uri/issues{/number}","pulls_url":"https://api.github.com/repos/amphp/uri/pulls{/number}","milestones_url":"https://api.github.com/repos/amphp/uri/milestones{/number}","notifications_url":"https://api.github.com/repos/amphp/uri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amphp/uri/labels{/name}","releases_url":"https://api.github.com/repos/amphp/uri/releases{/id}","deployments_url":"https://api.github.com/repos/amphp/uri/deployments","created_at":"2016-09-05T12:12:31Z","updated_at":"2017-08-28T15:17:26Z","pushed_at":"2017-10-11T18:03:31Z","git_url":"git://github.com/amphp/uri.git","ssh_url":"git@github.com:amphp/uri.git","clone_url":"https://github.com/amphp/uri.git","svn_url":"https://github.com/amphp/uri","homepage":null,"size":20,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amphp/uri/pulls/11"},"html":{"href":"https://github.com/amphp/uri/pull/11"},"issue":{"href":"https://api.github.com/repos/amphp/uri/issues/11"},"comments":{"href":"https://api.github.com/repos/amphp/uri/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/amphp/uri/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/amphp/uri/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amphp/uri/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/amphp/uri/statuses/e19d324421a5cfbd480559dfcd9d3a68fc10ae62"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":31,"deletions":16,"changed_files":1}}
{"actor":{"display_login":"kelunik"}}