{"action":"opened","number":676,"pull_request":{"url":"https://api.github.com/repos/google/protobuf/pulls/676","id":41421635,"html_url":"https://github.com/google/protobuf/pull/676","diff_url":"https://github.com/google/protobuf/pull/676.diff","patch_url":"https://github.com/google/protobuf/pull/676.patch","issue_url":"https://api.github.com/repos/google/protobuf/issues/676","number":676,"state":"open","locked":false,"title":"Optimize CodedInputStream.readByteBuffer() for LiteralByteString","user":{"login":"stepancheg","id":28969,"avatar_url":"https://avatars.githubusercontent.com/u/28969?v=3","gravatar_id":"","url":"https://api.github.com/users/stepancheg","html_url":"https://github.com/stepancheg","followers_url":"https://api.github.com/users/stepancheg/followers","following_url":"https://api.github.com/users/stepancheg/following{/other_user}","gists_url":"https://api.github.com/users/stepancheg/gists{/gist_id}","starred_url":"https://api.github.com/users/stepancheg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepancheg/subscriptions","organizations_url":"https://api.github.com/users/stepancheg/orgs","repos_url":"https://api.github.com/users/stepancheg/repos","events_url":"https://api.github.com/users/stepancheg/events{/privacy}","received_events_url":"https://api.github.com/users/stepancheg/received_events","type":"User","site_admin":false},"body":"With this patch applied `CodedInputStream.readByteBuffer()` returns\r\n`ByteBuffer` wrapping array contained in `LiteralByteString`.  To\r\nensure that `LiteralByteString` is not modified, returned buffer\r\nis made readonly with `.asReadOnlyBuffer()` operation.","created_at":"2015-08-02T17:58:29Z","updated_at":"2015-08-02T17:58:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/protobuf/pulls/676/commits","review_comments_url":"https://api.github.com/repos/google/protobuf/pulls/676/comments","review_comment_url":"https://api.github.com/repos/google/protobuf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/protobuf/issues/676/comments","statuses_url":"https://api.github.com/repos/google/protobuf/statuses/0d84b952fb03120c288b1676a92da54067b6cd6e","head":{"label":"stepancheg:bb","ref":"bb","sha":"0d84b952fb03120c288b1676a92da54067b6cd6e","user":{"login":"stepancheg","id":28969,"avatar_url":"https://avatars.githubusercontent.com/u/28969?v=3","gravatar_id":"","url":"https://api.github.com/users/stepancheg","html_url":"https://github.com/stepancheg","followers_url":"https://api.github.com/users/stepancheg/followers","following_url":"https://api.github.com/users/stepancheg/following{/other_user}","gists_url":"https://api.github.com/users/stepancheg/gists{/gist_id}","starred_url":"https://api.github.com/users/stepancheg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepancheg/subscriptions","organizations_url":"https://api.github.com/users/stepancheg/orgs","repos_url":"https://api.github.com/users/stepancheg/repos","events_url":"https://api.github.com/users/stepancheg/events{/privacy}","received_events_url":"https://api.github.com/users/stepancheg/received_events","type":"User","site_admin":false},"repo":{"id":40087858,"name":"protobuf","full_name":"stepancheg/protobuf","owner":{"login":"stepancheg","id":28969,"avatar_url":"https://avatars.githubusercontent.com/u/28969?v=3","gravatar_id":"","url":"https://api.github.com/users/stepancheg","html_url":"https://github.com/stepancheg","followers_url":"https://api.github.com/users/stepancheg/followers","following_url":"https://api.github.com/users/stepancheg/following{/other_user}","gists_url":"https://api.github.com/users/stepancheg/gists{/gist_id}","starred_url":"https://api.github.com/users/stepancheg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepancheg/subscriptions","organizations_url":"https://api.github.com/users/stepancheg/orgs","repos_url":"https://api.github.com/users/stepancheg/repos","events_url":"https://api.github.com/users/stepancheg/events{/privacy}","received_events_url":"https://api.github.com/users/stepancheg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stepancheg/protobuf","description":"Protocol Buffers - Google's data interchange format","fork":true,"url":"https://api.github.com/repos/stepancheg/protobuf","forks_url":"https://api.github.com/repos/stepancheg/protobuf/forks","keys_url":"https://api.github.com/repos/stepancheg/protobuf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stepancheg/protobuf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stepancheg/protobuf/teams","hooks_url":"https://api.github.com/repos/stepancheg/protobuf/hooks","issue_events_url":"https://api.github.com/repos/stepancheg/protobuf/issues/events{/number}","events_url":"https://api.github.com/repos/stepancheg/protobuf/events","assignees_url":"https://api.github.com/repos/stepancheg/protobuf/assignees{/user}","branches_url":"https://api.github.com/repos/stepancheg/protobuf/branches{/branch}","tags_url":"https://api.github.com/repos/stepancheg/protobuf/tags","blobs_url":"https://api.github.com/repos/stepancheg/protobuf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stepancheg/protobuf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stepancheg/protobuf/git/refs{/sha}","trees_url":"https://api.github.com/repos/stepancheg/protobuf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stepancheg/protobuf/statuses/{sha}","languages_url":"https://api.github.com/repos/stepancheg/protobuf/languages","stargazers_url":"https://api.github.com/repos/stepancheg/protobuf/stargazers","contributors_url":"https://api.github.com/repos/stepancheg/protobuf/contributors","subscribers_url":"https://api.github.com/repos/stepancheg/protobuf/subscribers","subscription_url":"https://api.github.com/repos/stepancheg/protobuf/subscription","commits_url":"https://api.github.com/repos/stepancheg/protobuf/commits{/sha}","git_commits_url":"https://api.github.com/repos/stepancheg/protobuf/git/commits{/sha}","comments_url":"https://api.github.com/repos/stepancheg/protobuf/comments{/number}","issue_comment_url":"https://api.github.com/repos/stepancheg/protobuf/issues/comments{/number}","contents_url":"https://api.github.com/repos/stepancheg/protobuf/contents/{+path}","compare_url":"https://api.github.com/repos/stepancheg/protobuf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stepancheg/protobuf/merges","archive_url":"https://api.github.com/repos/stepancheg/protobuf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stepancheg/protobuf/downloads","issues_url":"https://api.github.com/repos/stepancheg/protobuf/issues{/number}","pulls_url":"https://api.github.com/repos/stepancheg/protobuf/pulls{/number}","milestones_url":"https://api.github.com/repos/stepancheg/protobuf/milestones{/number}","notifications_url":"https://api.github.com/repos/stepancheg/protobuf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stepancheg/protobuf/labels{/name}","releases_url":"https://api.github.com/repos/stepancheg/protobuf/releases{/id}","created_at":"2015-08-02T17:57:08Z","updated_at":"2015-08-02T17:57:13Z","pushed_at":"2015-08-02T17:57:33Z","git_url":"git://github.com/stepancheg/protobuf.git","ssh_url":"git@github.com:stepancheg/protobuf.git","clone_url":"https://github.com/stepancheg/protobuf.git","svn_url":"https://github.com/stepancheg/protobuf","homepage":"https://developers.google.com/protocol-buffers/","size":49916,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"80f89b4ecfad8783c1453f1bf36ecda1c2c9c664","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":23357588,"name":"protobuf","full_name":"google/protobuf","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/protobuf","description":"Protocol Buffers - Google's data interchange format","fork":false,"url":"https://api.github.com/repos/google/protobuf","forks_url":"https://api.github.com/repos/google/protobuf/forks","keys_url":"https://api.github.com/repos/google/protobuf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/protobuf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/protobuf/teams","hooks_url":"https://api.github.com/repos/google/protobuf/hooks","issue_events_url":"https://api.github.com/repos/google/protobuf/issues/events{/number}","events_url":"https://api.github.com/repos/google/protobuf/events","assignees_url":"https://api.github.com/repos/google/protobuf/assignees{/user}","branches_url":"https://api.github.com/repos/google/protobuf/branches{/branch}","tags_url":"https://api.github.com/repos/google/protobuf/tags","blobs_url":"https://api.github.com/repos/google/protobuf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/protobuf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/protobuf/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/protobuf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/protobuf/statuses/{sha}","languages_url":"https://api.github.com/repos/google/protobuf/languages","stargazers_url":"https://api.github.com/repos/google/protobuf/stargazers","contributors_url":"https://api.github.com/repos/google/protobuf/contributors","subscribers_url":"https://api.github.com/repos/google/protobuf/subscribers","subscription_url":"https://api.github.com/repos/google/protobuf/subscription","commits_url":"https://api.github.com/repos/google/protobuf/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/protobuf/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/protobuf/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/protobuf/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/protobuf/contents/{+path}","compare_url":"https://api.github.com/repos/google/protobuf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/protobuf/merges","archive_url":"https://api.github.com/repos/google/protobuf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/protobuf/downloads","issues_url":"https://api.github.com/repos/google/protobuf/issues{/number}","pulls_url":"https://api.github.com/repos/google/protobuf/pulls{/number}","milestones_url":"https://api.github.com/repos/google/protobuf/milestones{/number}","notifications_url":"https://api.github.com/repos/google/protobuf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/protobuf/labels{/name}","releases_url":"https://api.github.com/repos/google/protobuf/releases{/id}","created_at":"2014-08-26T15:52:15Z","updated_at":"2015-08-02T14:31:50Z","pushed_at":"2015-08-02T17:58:29Z","git_url":"git://github.com/google/protobuf.git","ssh_url":"git@github.com:google/protobuf.git","clone_url":"https://github.com/google/protobuf.git","svn_url":"https://github.com/google/protobuf","homepage":"https://developers.google.com/protocol-buffers/","size":49916,"stargazers_count":4403,"watchers_count":4403,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1196,"mirror_url":null,"open_issues_count":199,"forks":1196,"open_issues":199,"watchers":4403,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/protobuf/pulls/676"},"html":{"href":"https://github.com/google/protobuf/pull/676"},"issue":{"href":"https://api.github.com/repos/google/protobuf/issues/676"},"comments":{"href":"https://api.github.com/repos/google/protobuf/issues/676/comments"},"review_comments":{"href":"https://api.github.com/repos/google/protobuf/pulls/676/comments"},"review_comment":{"href":"https://api.github.com/repos/google/protobuf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/protobuf/pulls/676/commits"},"statuses":{"href":"https://api.github.com/repos/google/protobuf/statuses/0d84b952fb03120c288b1676a92da54067b6cd6e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":33,"deletions":4,"changed_files":2}}