{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/wonderbread/rack-pratchett/pulls/1","id":31197547,"html_url":"https://github.com/wonderbread/rack-pratchett/pull/1","diff_url":"https://github.com/wonderbread/rack-pratchett/pull/1.diff","patch_url":"https://github.com/wonderbread/rack-pratchett/pull/1.patch","issue_url":"https://api.github.com/repos/wonderbread/rack-pratchett/issues/1","number":1,"state":"open","locked":false,"title":"avoid run time allocations","user":{"login":"rkh","id":30442,"avatar_url":"https://avatars.githubusercontent.com/u/30442?v=3","gravatar_id":"","url":"https://api.github.com/users/rkh","html_url":"https://github.com/rkh","followers_url":"https://api.github.com/users/rkh/followers","following_url":"https://api.github.com/users/rkh/following{/other_user}","gists_url":"https://api.github.com/users/rkh/gists{/gist_id}","starred_url":"https://api.github.com/users/rkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkh/subscriptions","organizations_url":"https://api.github.com/users/rkh/orgs","repos_url":"https://api.github.com/users/rkh/repos","events_url":"https://api.github.com/users/rkh/events{/privacy}","received_events_url":"https://api.github.com/users/rkh/received_events","type":"User","site_admin":false},"body":"Previously the middleware create three objects per request, with this patch and a recent Ruby it will not allocate any objects after initialisation.","created_at":"2015-03-15T09:04:38Z","updated_at":"2015-03-15T09:04:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wonderbread/rack-pratchett/pulls/1/commits","review_comments_url":"https://api.github.com/repos/wonderbread/rack-pratchett/pulls/1/comments","review_comment_url":"https://api.github.com/repos/wonderbread/rack-pratchett/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wonderbread/rack-pratchett/issues/1/comments","statuses_url":"https://api.github.com/repos/wonderbread/rack-pratchett/statuses/dcbe15d604f5464fa64f775f411598d81d61c1df","head":{"label":"rkh:no-allocations","ref":"no-allocations","sha":"dcbe15d604f5464fa64f775f411598d81d61c1df","user":{"login":"rkh","id":30442,"avatar_url":"https://avatars.githubusercontent.com/u/30442?v=3","gravatar_id":"","url":"https://api.github.com/users/rkh","html_url":"https://github.com/rkh","followers_url":"https://api.github.com/users/rkh/followers","following_url":"https://api.github.com/users/rkh/following{/other_user}","gists_url":"https://api.github.com/users/rkh/gists{/gist_id}","starred_url":"https://api.github.com/users/rkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkh/subscriptions","organizations_url":"https://api.github.com/users/rkh/orgs","repos_url":"https://api.github.com/users/rkh/repos","events_url":"https://api.github.com/users/rkh/events{/privacy}","received_events_url":"https://api.github.com/users/rkh/received_events","type":"User","site_admin":false},"repo":{"id":32251982,"name":"rack-pratchett","full_name":"rkh/rack-pratchett","owner":{"login":"rkh","id":30442,"avatar_url":"https://avatars.githubusercontent.com/u/30442?v=3","gravatar_id":"","url":"https://api.github.com/users/rkh","html_url":"https://github.com/rkh","followers_url":"https://api.github.com/users/rkh/followers","following_url":"https://api.github.com/users/rkh/following{/other_user}","gists_url":"https://api.github.com/users/rkh/gists{/gist_id}","starred_url":"https://api.github.com/users/rkh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkh/subscriptions","organizations_url":"https://api.github.com/users/rkh/orgs","repos_url":"https://api.github.com/users/rkh/repos","events_url":"https://api.github.com/users/rkh/events{/privacy}","received_events_url":"https://api.github.com/users/rkh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rkh/rack-pratchett","description":"Terry Pratchett rack middleware. GNU Terry Pratchett.","fork":true,"url":"https://api.github.com/repos/rkh/rack-pratchett","forks_url":"https://api.github.com/repos/rkh/rack-pratchett/forks","keys_url":"https://api.github.com/repos/rkh/rack-pratchett/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rkh/rack-pratchett/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rkh/rack-pratchett/teams","hooks_url":"https://api.github.com/repos/rkh/rack-pratchett/hooks","issue_events_url":"https://api.github.com/repos/rkh/rack-pratchett/issues/events{/number}","events_url":"https://api.github.com/repos/rkh/rack-pratchett/events","assignees_url":"https://api.github.com/repos/rkh/rack-pratchett/assignees{/user}","branches_url":"https://api.github.com/repos/rkh/rack-pratchett/branches{/branch}","tags_url":"https://api.github.com/repos/rkh/rack-pratchett/tags","blobs_url":"https://api.github.com/repos/rkh/rack-pratchett/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rkh/rack-pratchett/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rkh/rack-pratchett/git/refs{/sha}","trees_url":"https://api.github.com/repos/rkh/rack-pratchett/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rkh/rack-pratchett/statuses/{sha}","languages_url":"https://api.github.com/repos/rkh/rack-pratchett/languages","stargazers_url":"https://api.github.com/repos/rkh/rack-pratchett/stargazers","contributors_url":"https://api.github.com/repos/rkh/rack-pratchett/contributors","subscribers_url":"https://api.github.com/repos/rkh/rack-pratchett/subscribers","subscription_url":"https://api.github.com/repos/rkh/rack-pratchett/subscription","commits_url":"https://api.github.com/repos/rkh/rack-pratchett/commits{/sha}","git_commits_url":"https://api.github.com/repos/rkh/rack-pratchett/git/commits{/sha}","comments_url":"https://api.github.com/repos/rkh/rack-pratchett/comments{/number}","issue_comment_url":"https://api.github.com/repos/rkh/rack-pratchett/issues/comments{/number}","contents_url":"https://api.github.com/repos/rkh/rack-pratchett/contents/{+path}","compare_url":"https://api.github.com/repos/rkh/rack-pratchett/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rkh/rack-pratchett/merges","archive_url":"https://api.github.com/repos/rkh/rack-pratchett/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rkh/rack-pratchett/downloads","issues_url":"https://api.github.com/repos/rkh/rack-pratchett/issues{/number}","pulls_url":"https://api.github.com/repos/rkh/rack-pratchett/pulls{/number}","milestones_url":"https://api.github.com/repos/rkh/rack-pratchett/milestones{/number}","notifications_url":"https://api.github.com/repos/rkh/rack-pratchett/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rkh/rack-pratchett/labels{/name}","releases_url":"https://api.github.com/repos/rkh/rack-pratchett/releases{/id}","created_at":"2015-03-15T08:58:49Z","updated_at":"2015-03-15T08:58:52Z","pushed_at":"2015-03-15T09:02:31Z","git_url":"git://github.com/rkh/rack-pratchett.git","ssh_url":"git@github.com:rkh/rack-pratchett.git","clone_url":"https://github.com/rkh/rack-pratchett.git","svn_url":"https://github.com/rkh/rack-pratchett","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"wonderbread:master","ref":"master","sha":"555802ba76634447f115451e15fc2a01ca809c6b","user":{"login":"wonderbread","id":222057,"avatar_url":"https://avatars.githubusercontent.com/u/222057?v=3","gravatar_id":"","url":"https://api.github.com/users/wonderbread","html_url":"https://github.com/wonderbread","followers_url":"https://api.github.com/users/wonderbread/followers","following_url":"https://api.github.com/users/wonderbread/following{/other_user}","gists_url":"https://api.github.com/users/wonderbread/gists{/gist_id}","starred_url":"https://api.github.com/users/wonderbread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wonderbread/subscriptions","organizations_url":"https://api.github.com/users/wonderbread/orgs","repos_url":"https://api.github.com/users/wonderbread/repos","events_url":"https://api.github.com/users/wonderbread/events{/privacy}","received_events_url":"https://api.github.com/users/wonderbread/received_events","type":"User","site_admin":false},"repo":{"id":32193696,"name":"rack-pratchett","full_name":"wonderbread/rack-pratchett","owner":{"login":"wonderbread","id":222057,"avatar_url":"https://avatars.githubusercontent.com/u/222057?v=3","gravatar_id":"","url":"https://api.github.com/users/wonderbread","html_url":"https://github.com/wonderbread","followers_url":"https://api.github.com/users/wonderbread/followers","following_url":"https://api.github.com/users/wonderbread/following{/other_user}","gists_url":"https://api.github.com/users/wonderbread/gists{/gist_id}","starred_url":"https://api.github.com/users/wonderbread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wonderbread/subscriptions","organizations_url":"https://api.github.com/users/wonderbread/orgs","repos_url":"https://api.github.com/users/wonderbread/repos","events_url":"https://api.github.com/users/wonderbread/events{/privacy}","received_events_url":"https://api.github.com/users/wonderbread/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wonderbread/rack-pratchett","description":"Terry Pratchett rack middleware. GNU Terry Pratchett.","fork":false,"url":"https://api.github.com/repos/wonderbread/rack-pratchett","forks_url":"https://api.github.com/repos/wonderbread/rack-pratchett/forks","keys_url":"https://api.github.com/repos/wonderbread/rack-pratchett/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wonderbread/rack-pratchett/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wonderbread/rack-pratchett/teams","hooks_url":"https://api.github.com/repos/wonderbread/rack-pratchett/hooks","issue_events_url":"https://api.github.com/repos/wonderbread/rack-pratchett/issues/events{/number}","events_url":"https://api.github.com/repos/wonderbread/rack-pratchett/events","assignees_url":"https://api.github.com/repos/wonderbread/rack-pratchett/assignees{/user}","branches_url":"https://api.github.com/repos/wonderbread/rack-pratchett/branches{/branch}","tags_url":"https://api.github.com/repos/wonderbread/rack-pratchett/tags","blobs_url":"https://api.github.com/repos/wonderbread/rack-pratchett/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wonderbread/rack-pratchett/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wonderbread/rack-pratchett/git/refs{/sha}","trees_url":"https://api.github.com/repos/wonderbread/rack-pratchett/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wonderbread/rack-pratchett/statuses/{sha}","languages_url":"https://api.github.com/repos/wonderbread/rack-pratchett/languages","stargazers_url":"https://api.github.com/repos/wonderbread/rack-pratchett/stargazers","contributors_url":"https://api.github.com/repos/wonderbread/rack-pratchett/contributors","subscribers_url":"https://api.github.com/repos/wonderbread/rack-pratchett/subscribers","subscription_url":"https://api.github.com/repos/wonderbread/rack-pratchett/subscription","commits_url":"https://api.github.com/repos/wonderbread/rack-pratchett/commits{/sha}","git_commits_url":"https://api.github.com/repos/wonderbread/rack-pratchett/git/commits{/sha}","comments_url":"https://api.github.com/repos/wonderbread/rack-pratchett/comments{/number}","issue_comment_url":"https://api.github.com/repos/wonderbread/rack-pratchett/issues/comments{/number}","contents_url":"https://api.github.com/repos/wonderbread/rack-pratchett/contents/{+path}","compare_url":"https://api.github.com/repos/wonderbread/rack-pratchett/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wonderbread/rack-pratchett/merges","archive_url":"https://api.github.com/repos/wonderbread/rack-pratchett/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wonderbread/rack-pratchett/downloads","issues_url":"https://api.github.com/repos/wonderbread/rack-pratchett/issues{/number}","pulls_url":"https://api.github.com/repos/wonderbread/rack-pratchett/pulls{/number}","milestones_url":"https://api.github.com/repos/wonderbread/rack-pratchett/milestones{/number}","notifications_url":"https://api.github.com/repos/wonderbread/rack-pratchett/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wonderbread/rack-pratchett/labels{/name}","releases_url":"https://api.github.com/repos/wonderbread/rack-pratchett/releases{/id}","created_at":"2015-03-14T03:15:01Z","updated_at":"2015-03-15T08:57:54Z","pushed_at":"2015-03-14T03:17:58Z","git_url":"git://github.com/wonderbread/rack-pratchett.git","ssh_url":"git@github.com:wonderbread/rack-pratchett.git","clone_url":"https://github.com/wonderbread/rack-pratchett.git","svn_url":"https://github.com/wonderbread/rack-pratchett","homepage":null,"size":0,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wonderbread/rack-pratchett/pulls/1"},"html":{"href":"https://github.com/wonderbread/rack-pratchett/pull/1"},"issue":{"href":"https://api.github.com/repos/wonderbread/rack-pratchett/issues/1"},"comments":{"href":"https://api.github.com/repos/wonderbread/rack-pratchett/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/wonderbread/rack-pratchett/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/wonderbread/rack-pratchett/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wonderbread/rack-pratchett/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/wonderbread/rack-pratchett/statuses/dcbe15d604f5464fa64f775f411598d81d61c1df"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":1}}