{"action":"opened","number":310,"pull_request":{"url":"https://api.github.com/repos/apache/cxf/pulls/310","id":138861520,"html_url":"https://github.com/apache/cxf/pull/310","diff_url":"https://github.com/apache/cxf/pull/310.diff","patch_url":"https://github.com/apache/cxf/pull/310.patch","issue_url":"https://api.github.com/repos/apache/cxf/issues/310","number":310,"state":"open","locked":false,"title":"Cache URITemplates instead of creating them over and over resulting i…","user":{"login":"bcluap","id":26746221,"avatar_url":"https://avatars0.githubusercontent.com/u/26746221?v=4","gravatar_id":"","url":"https://api.github.com/users/bcluap","html_url":"https://github.com/bcluap","followers_url":"https://api.github.com/users/bcluap/followers","following_url":"https://api.github.com/users/bcluap/following{/other_user}","gists_url":"https://api.github.com/users/bcluap/gists{/gist_id}","starred_url":"https://api.github.com/users/bcluap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcluap/subscriptions","organizations_url":"https://api.github.com/users/bcluap/orgs","repos_url":"https://api.github.com/users/bcluap/repos","events_url":"https://api.github.com/users/bcluap/events{/privacy}","received_events_url":"https://api.github.com/users/bcluap/received_events","type":"User","site_admin":false},"body":"…n wasted CPU cycles and GC runs. The cache prevents having to compile java.util.regex.Pattern when the underlying templates seldom change as well as preventing other fairly heavy lifting each time a template is instantiated.\r\n\r\nMy load tests show approx 10% throughput increase on a basic JAX-RS service with 10 client threads in JMeter. My use case uses a lot of URITemplate instantiation due to calling javax.ws.rs.core.UriInfo.getMatchedURIs() on each sub-resource call.\r\n\r\nI checked that URITemplate is thread safe and hence viable to be used in an instance cache without the need for additional locking.","created_at":"2017-09-01T10:31:55Z","updated_at":"2017-09-01T10:31:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/cxf/pulls/310/commits","review_comments_url":"https://api.github.com/repos/apache/cxf/pulls/310/comments","review_comment_url":"https://api.github.com/repos/apache/cxf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/cxf/issues/310/comments","statuses_url":"https://api.github.com/repos/apache/cxf/statuses/bcc909b938051a41284bb4583977386c2c72ea09","head":{"label":"bcluap:master","ref":"master","sha":"bcc909b938051a41284bb4583977386c2c72ea09","user":{"login":"bcluap","id":26746221,"avatar_url":"https://avatars0.githubusercontent.com/u/26746221?v=4","gravatar_id":"","url":"https://api.github.com/users/bcluap","html_url":"https://github.com/bcluap","followers_url":"https://api.github.com/users/bcluap/followers","following_url":"https://api.github.com/users/bcluap/following{/other_user}","gists_url":"https://api.github.com/users/bcluap/gists{/gist_id}","starred_url":"https://api.github.com/users/bcluap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcluap/subscriptions","organizations_url":"https://api.github.com/users/bcluap/orgs","repos_url":"https://api.github.com/users/bcluap/repos","events_url":"https://api.github.com/users/bcluap/events{/privacy}","received_events_url":"https://api.github.com/users/bcluap/received_events","type":"User","site_admin":false},"repo":{"id":102100065,"name":"cxf","full_name":"bcluap/cxf","owner":{"login":"bcluap","id":26746221,"avatar_url":"https://avatars0.githubusercontent.com/u/26746221?v=4","gravatar_id":"","url":"https://api.github.com/users/bcluap","html_url":"https://github.com/bcluap","followers_url":"https://api.github.com/users/bcluap/followers","following_url":"https://api.github.com/users/bcluap/following{/other_user}","gists_url":"https://api.github.com/users/bcluap/gists{/gist_id}","starred_url":"https://api.github.com/users/bcluap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcluap/subscriptions","organizations_url":"https://api.github.com/users/bcluap/orgs","repos_url":"https://api.github.com/users/bcluap/repos","events_url":"https://api.github.com/users/bcluap/events{/privacy}","received_events_url":"https://api.github.com/users/bcluap/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bcluap/cxf","description":"Mirror of Apache CXF","fork":true,"url":"https://api.github.com/repos/bcluap/cxf","forks_url":"https://api.github.com/repos/bcluap/cxf/forks","keys_url":"https://api.github.com/repos/bcluap/cxf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcluap/cxf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcluap/cxf/teams","hooks_url":"https://api.github.com/repos/bcluap/cxf/hooks","issue_events_url":"https://api.github.com/repos/bcluap/cxf/issues/events{/number}","events_url":"https://api.github.com/repos/bcluap/cxf/events","assignees_url":"https://api.github.com/repos/bcluap/cxf/assignees{/user}","branches_url":"https://api.github.com/repos/bcluap/cxf/branches{/branch}","tags_url":"https://api.github.com/repos/bcluap/cxf/tags","blobs_url":"https://api.github.com/repos/bcluap/cxf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcluap/cxf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcluap/cxf/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcluap/cxf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcluap/cxf/statuses/{sha}","languages_url":"https://api.github.com/repos/bcluap/cxf/languages","stargazers_url":"https://api.github.com/repos/bcluap/cxf/stargazers","contributors_url":"https://api.github.com/repos/bcluap/cxf/contributors","subscribers_url":"https://api.github.com/repos/bcluap/cxf/subscribers","subscription_url":"https://api.github.com/repos/bcluap/cxf/subscription","commits_url":"https://api.github.com/repos/bcluap/cxf/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcluap/cxf/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcluap/cxf/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcluap/cxf/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcluap/cxf/contents/{+path}","compare_url":"https://api.github.com/repos/bcluap/cxf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcluap/cxf/merges","archive_url":"https://api.github.com/repos/bcluap/cxf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcluap/cxf/downloads","issues_url":"https://api.github.com/repos/bcluap/cxf/issues{/number}","pulls_url":"https://api.github.com/repos/bcluap/cxf/pulls{/number}","milestones_url":"https://api.github.com/repos/bcluap/cxf/milestones{/number}","notifications_url":"https://api.github.com/repos/bcluap/cxf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcluap/cxf/labels{/name}","releases_url":"https://api.github.com/repos/bcluap/cxf/releases{/id}","deployments_url":"https://api.github.com/repos/bcluap/cxf/deployments","created_at":"2017-09-01T10:01:15Z","updated_at":"2017-09-01T10:01:41Z","pushed_at":"2017-09-01T10:26:26Z","git_url":"git://github.com/bcluap/cxf.git","ssh_url":"git@github.com:bcluap/cxf.git","clone_url":"https://github.com/bcluap/cxf.git","svn_url":"https://github.com/bcluap/cxf","homepage":null,"size":95054,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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":"apache:master","ref":"master","sha":"18dd0e1c754fd30c9ab479cf123db5ab8f6810e7","user":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":16977479,"name":"cxf","full_name":"apache/cxf","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/cxf","description":"Mirror of Apache CXF","fork":false,"url":"https://api.github.com/repos/apache/cxf","forks_url":"https://api.github.com/repos/apache/cxf/forks","keys_url":"https://api.github.com/repos/apache/cxf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/cxf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/cxf/teams","hooks_url":"https://api.github.com/repos/apache/cxf/hooks","issue_events_url":"https://api.github.com/repos/apache/cxf/issues/events{/number}","events_url":"https://api.github.com/repos/apache/cxf/events","assignees_url":"https://api.github.com/repos/apache/cxf/assignees{/user}","branches_url":"https://api.github.com/repos/apache/cxf/branches{/branch}","tags_url":"https://api.github.com/repos/apache/cxf/tags","blobs_url":"https://api.github.com/repos/apache/cxf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/cxf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/cxf/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/cxf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/cxf/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/cxf/languages","stargazers_url":"https://api.github.com/repos/apache/cxf/stargazers","contributors_url":"https://api.github.com/repos/apache/cxf/contributors","subscribers_url":"https://api.github.com/repos/apache/cxf/subscribers","subscription_url":"https://api.github.com/repos/apache/cxf/subscription","commits_url":"https://api.github.com/repos/apache/cxf/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/cxf/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/cxf/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/cxf/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/cxf/contents/{+path}","compare_url":"https://api.github.com/repos/apache/cxf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/cxf/merges","archive_url":"https://api.github.com/repos/apache/cxf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/cxf/downloads","issues_url":"https://api.github.com/repos/apache/cxf/issues{/number}","pulls_url":"https://api.github.com/repos/apache/cxf/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/cxf/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/cxf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/cxf/labels{/name}","releases_url":"https://api.github.com/repos/apache/cxf/releases{/id}","deployments_url":"https://api.github.com/repos/apache/cxf/deployments","created_at":"2014-02-19T08:00:08Z","updated_at":"2017-08-31T22:58:04Z","pushed_at":"2017-09-01T10:01:21Z","git_url":"git://github.com/apache/cxf.git","ssh_url":"git@github.com:apache/cxf.git","clone_url":"https://github.com/apache/cxf.git","svn_url":"https://github.com/apache/cxf","homepage":null,"size":95054,"stargazers_count":321,"watchers_count":321,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":585,"mirror_url":"git://git.apache.org/cxf.git","open_issues_count":10,"forks":585,"open_issues":10,"watchers":321,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/cxf/pulls/310"},"html":{"href":"https://github.com/apache/cxf/pull/310"},"issue":{"href":"https://api.github.com/repos/apache/cxf/issues/310"},"comments":{"href":"https://api.github.com/repos/apache/cxf/issues/310/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/cxf/pulls/310/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/cxf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/cxf/pulls/310/commits"},"statuses":{"href":"https://api.github.com/repos/apache/cxf/statuses/bcc909b938051a41284bb4583977386c2c72ea09"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":29,"deletions":17,"changed_files":2}}
{"actor":{"display_login":"bcluap"}}