{"action":"opened","number":267,"pull_request":{"url":"https://api.github.com/repos/relayrides/pushy/pulls/267","id":65916991,"html_url":"https://github.com/relayrides/pushy/pull/267","diff_url":"https://github.com/relayrides/pushy/pull/267.diff","patch_url":"https://github.com/relayrides/pushy/pull/267.patch","issue_url":"https://api.github.com/repos/relayrides/pushy/issues/267","number":267,"state":"open","locked":false,"title":"Optimize payload construction (closes #11)","user":{"login":"jchambers","id":31352,"avatar_url":"https://avatars.githubusercontent.com/u/31352?v=3","gravatar_id":"","url":"https://api.github.com/users/jchambers","html_url":"https://github.com/jchambers","followers_url":"https://api.github.com/users/jchambers/followers","following_url":"https://api.github.com/users/jchambers/following{/other_user}","gists_url":"https://api.github.com/users/jchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/jchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchambers/subscriptions","organizations_url":"https://api.github.com/users/jchambers/orgs","repos_url":"https://api.github.com/users/jchambers/repos","events_url":"https://api.github.com/users/jchambers/events{/privacy}","received_events_url":"https://api.github.com/users/jchambers/received_events","type":"User","site_admin":false},"body":"#11 has been on the to-do list for a really long time, and this finally clears it out. This does two important things:\r\n\r\n1. It avoids frequently modifying the payload map.\r\n2. It uses a binary search instead of a linear search to identify maximal-length alert bodies. This may actually turn out to be very slightly slower for users who were sending mostly-ASCII messages, but will be an enormous improvement for anybody sending mostly-Unicode messages.","created_at":"2016-04-10T17:39:13Z","updated_at":"2016-04-10T17:39:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":{"url":"https://api.github.com/repos/relayrides/pushy/milestones/12","html_url":"https://github.com/relayrides/pushy/milestones/v0.7","labels_url":"https://api.github.com/repos/relayrides/pushy/milestones/12/labels","id":1670885,"number":12,"title":"v0.7","description":"","creator":{"login":"jchambers","id":31352,"avatar_url":"https://avatars.githubusercontent.com/u/31352?v=3","gravatar_id":"","url":"https://api.github.com/users/jchambers","html_url":"https://github.com/jchambers","followers_url":"https://api.github.com/users/jchambers/followers","following_url":"https://api.github.com/users/jchambers/following{/other_user}","gists_url":"https://api.github.com/users/jchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/jchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchambers/subscriptions","organizations_url":"https://api.github.com/users/jchambers/orgs","repos_url":"https://api.github.com/users/jchambers/repos","events_url":"https://api.github.com/users/jchambers/events{/privacy}","received_events_url":"https://api.github.com/users/jchambers/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2016-03-29T02:08:09Z","updated_at":"2016-04-10T17:39:13Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/relayrides/pushy/pulls/267/commits","review_comments_url":"https://api.github.com/repos/relayrides/pushy/pulls/267/comments","review_comment_url":"https://api.github.com/repos/relayrides/pushy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/relayrides/pushy/issues/267/comments","statuses_url":"https://api.github.com/repos/relayrides/pushy/statuses/aa561461f013ff7549aaf427ca4ff68db0c1666f","head":{"label":"relayrides:optimize_payload_construction","ref":"optimize_payload_construction","sha":"aa561461f013ff7549aaf427ca4ff68db0c1666f","user":{"login":"relayrides","id":1017687,"avatar_url":"https://avatars.githubusercontent.com/u/1017687?v=3","gravatar_id":"","url":"https://api.github.com/users/relayrides","html_url":"https://github.com/relayrides","followers_url":"https://api.github.com/users/relayrides/followers","following_url":"https://api.github.com/users/relayrides/following{/other_user}","gists_url":"https://api.github.com/users/relayrides/gists{/gist_id}","starred_url":"https://api.github.com/users/relayrides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relayrides/subscriptions","organizations_url":"https://api.github.com/users/relayrides/orgs","repos_url":"https://api.github.com/users/relayrides/repos","events_url":"https://api.github.com/users/relayrides/events{/privacy}","received_events_url":"https://api.github.com/users/relayrides/received_events","type":"Organization","site_admin":false},"repo":{"id":11851236,"name":"pushy","full_name":"relayrides/pushy","owner":{"login":"relayrides","id":1017687,"avatar_url":"https://avatars.githubusercontent.com/u/1017687?v=3","gravatar_id":"","url":"https://api.github.com/users/relayrides","html_url":"https://github.com/relayrides","followers_url":"https://api.github.com/users/relayrides/followers","following_url":"https://api.github.com/users/relayrides/following{/other_user}","gists_url":"https://api.github.com/users/relayrides/gists{/gist_id}","starred_url":"https://api.github.com/users/relayrides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relayrides/subscriptions","organizations_url":"https://api.github.com/users/relayrides/orgs","repos_url":"https://api.github.com/users/relayrides/repos","events_url":"https://api.github.com/users/relayrides/events{/privacy}","received_events_url":"https://api.github.com/users/relayrides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/relayrides/pushy","description":"A Java library for sending APNs (iOS/OS X) push notifications","fork":false,"url":"https://api.github.com/repos/relayrides/pushy","forks_url":"https://api.github.com/repos/relayrides/pushy/forks","keys_url":"https://api.github.com/repos/relayrides/pushy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/relayrides/pushy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/relayrides/pushy/teams","hooks_url":"https://api.github.com/repos/relayrides/pushy/hooks","issue_events_url":"https://api.github.com/repos/relayrides/pushy/issues/events{/number}","events_url":"https://api.github.com/repos/relayrides/pushy/events","assignees_url":"https://api.github.com/repos/relayrides/pushy/assignees{/user}","branches_url":"https://api.github.com/repos/relayrides/pushy/branches{/branch}","tags_url":"https://api.github.com/repos/relayrides/pushy/tags","blobs_url":"https://api.github.com/repos/relayrides/pushy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/relayrides/pushy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/relayrides/pushy/git/refs{/sha}","trees_url":"https://api.github.com/repos/relayrides/pushy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/relayrides/pushy/statuses/{sha}","languages_url":"https://api.github.com/repos/relayrides/pushy/languages","stargazers_url":"https://api.github.com/repos/relayrides/pushy/stargazers","contributors_url":"https://api.github.com/repos/relayrides/pushy/contributors","subscribers_url":"https://api.github.com/repos/relayrides/pushy/subscribers","subscription_url":"https://api.github.com/repos/relayrides/pushy/subscription","commits_url":"https://api.github.com/repos/relayrides/pushy/commits{/sha}","git_commits_url":"https://api.github.com/repos/relayrides/pushy/git/commits{/sha}","comments_url":"https://api.github.com/repos/relayrides/pushy/comments{/number}","issue_comment_url":"https://api.github.com/repos/relayrides/pushy/issues/comments{/number}","contents_url":"https://api.github.com/repos/relayrides/pushy/contents/{+path}","compare_url":"https://api.github.com/repos/relayrides/pushy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/relayrides/pushy/merges","archive_url":"https://api.github.com/repos/relayrides/pushy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/relayrides/pushy/downloads","issues_url":"https://api.github.com/repos/relayrides/pushy/issues{/number}","pulls_url":"https://api.github.com/repos/relayrides/pushy/pulls{/number}","milestones_url":"https://api.github.com/repos/relayrides/pushy/milestones{/number}","notifications_url":"https://api.github.com/repos/relayrides/pushy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/relayrides/pushy/labels{/name}","releases_url":"https://api.github.com/repos/relayrides/pushy/releases{/id}","deployments_url":"https://api.github.com/repos/relayrides/pushy/deployments","created_at":"2013-08-02T19:38:31Z","updated_at":"2016-04-08T03:09:32Z","pushed_at":"2016-04-10T17:35:06Z","git_url":"git://github.com/relayrides/pushy.git","ssh_url":"git@github.com:relayrides/pushy.git","clone_url":"https://github.com/relayrides/pushy.git","svn_url":"https://github.com/relayrides/pushy","homepage":"http://relayrides.github.io/pushy/","size":4775,"stargazers_count":370,"watchers_count":370,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":118,"mirror_url":null,"open_issues_count":8,"forks":118,"open_issues":8,"watchers":370,"default_branch":"master"}},"base":{"label":"relayrides:master","ref":"master","sha":"5cc8a303d29a451ed772268646bf610705e1768f","user":{"login":"relayrides","id":1017687,"avatar_url":"https://avatars.githubusercontent.com/u/1017687?v=3","gravatar_id":"","url":"https://api.github.com/users/relayrides","html_url":"https://github.com/relayrides","followers_url":"https://api.github.com/users/relayrides/followers","following_url":"https://api.github.com/users/relayrides/following{/other_user}","gists_url":"https://api.github.com/users/relayrides/gists{/gist_id}","starred_url":"https://api.github.com/users/relayrides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relayrides/subscriptions","organizations_url":"https://api.github.com/users/relayrides/orgs","repos_url":"https://api.github.com/users/relayrides/repos","events_url":"https://api.github.com/users/relayrides/events{/privacy}","received_events_url":"https://api.github.com/users/relayrides/received_events","type":"Organization","site_admin":false},"repo":{"id":11851236,"name":"pushy","full_name":"relayrides/pushy","owner":{"login":"relayrides","id":1017687,"avatar_url":"https://avatars.githubusercontent.com/u/1017687?v=3","gravatar_id":"","url":"https://api.github.com/users/relayrides","html_url":"https://github.com/relayrides","followers_url":"https://api.github.com/users/relayrides/followers","following_url":"https://api.github.com/users/relayrides/following{/other_user}","gists_url":"https://api.github.com/users/relayrides/gists{/gist_id}","starred_url":"https://api.github.com/users/relayrides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/relayrides/subscriptions","organizations_url":"https://api.github.com/users/relayrides/orgs","repos_url":"https://api.github.com/users/relayrides/repos","events_url":"https://api.github.com/users/relayrides/events{/privacy}","received_events_url":"https://api.github.com/users/relayrides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/relayrides/pushy","description":"A Java library for sending APNs (iOS/OS X) push notifications","fork":false,"url":"https://api.github.com/repos/relayrides/pushy","forks_url":"https://api.github.com/repos/relayrides/pushy/forks","keys_url":"https://api.github.com/repos/relayrides/pushy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/relayrides/pushy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/relayrides/pushy/teams","hooks_url":"https://api.github.com/repos/relayrides/pushy/hooks","issue_events_url":"https://api.github.com/repos/relayrides/pushy/issues/events{/number}","events_url":"https://api.github.com/repos/relayrides/pushy/events","assignees_url":"https://api.github.com/repos/relayrides/pushy/assignees{/user}","branches_url":"https://api.github.com/repos/relayrides/pushy/branches{/branch}","tags_url":"https://api.github.com/repos/relayrides/pushy/tags","blobs_url":"https://api.github.com/repos/relayrides/pushy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/relayrides/pushy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/relayrides/pushy/git/refs{/sha}","trees_url":"https://api.github.com/repos/relayrides/pushy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/relayrides/pushy/statuses/{sha}","languages_url":"https://api.github.com/repos/relayrides/pushy/languages","stargazers_url":"https://api.github.com/repos/relayrides/pushy/stargazers","contributors_url":"https://api.github.com/repos/relayrides/pushy/contributors","subscribers_url":"https://api.github.com/repos/relayrides/pushy/subscribers","subscription_url":"https://api.github.com/repos/relayrides/pushy/subscription","commits_url":"https://api.github.com/repos/relayrides/pushy/commits{/sha}","git_commits_url":"https://api.github.com/repos/relayrides/pushy/git/commits{/sha}","comments_url":"https://api.github.com/repos/relayrides/pushy/comments{/number}","issue_comment_url":"https://api.github.com/repos/relayrides/pushy/issues/comments{/number}","contents_url":"https://api.github.com/repos/relayrides/pushy/contents/{+path}","compare_url":"https://api.github.com/repos/relayrides/pushy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/relayrides/pushy/merges","archive_url":"https://api.github.com/repos/relayrides/pushy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/relayrides/pushy/downloads","issues_url":"https://api.github.com/repos/relayrides/pushy/issues{/number}","pulls_url":"https://api.github.com/repos/relayrides/pushy/pulls{/number}","milestones_url":"https://api.github.com/repos/relayrides/pushy/milestones{/number}","notifications_url":"https://api.github.com/repos/relayrides/pushy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/relayrides/pushy/labels{/name}","releases_url":"https://api.github.com/repos/relayrides/pushy/releases{/id}","deployments_url":"https://api.github.com/repos/relayrides/pushy/deployments","created_at":"2013-08-02T19:38:31Z","updated_at":"2016-04-08T03:09:32Z","pushed_at":"2016-04-10T17:35:06Z","git_url":"git://github.com/relayrides/pushy.git","ssh_url":"git@github.com:relayrides/pushy.git","clone_url":"https://github.com/relayrides/pushy.git","svn_url":"https://github.com/relayrides/pushy","homepage":"http://relayrides.github.io/pushy/","size":4775,"stargazers_count":370,"watchers_count":370,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":118,"mirror_url":null,"open_issues_count":8,"forks":118,"open_issues":8,"watchers":370,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/relayrides/pushy/pulls/267"},"html":{"href":"https://github.com/relayrides/pushy/pull/267"},"issue":{"href":"https://api.github.com/repos/relayrides/pushy/issues/267"},"comments":{"href":"https://api.github.com/repos/relayrides/pushy/issues/267/comments"},"review_comments":{"href":"https://api.github.com/repos/relayrides/pushy/pulls/267/comments"},"review_comment":{"href":"https://api.github.com/repos/relayrides/pushy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/relayrides/pushy/pulls/267/commits"},"statuses":{"href":"https://api.github.com/repos/relayrides/pushy/statuses/aa561461f013ff7549aaf427ca4ff68db0c1666f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":60,"deletions":27,"changed_files":3}}