{"action":"created","comment":{"url":"https://api.github.com/repos/paritytech/parity-codec/pulls/comments/219444504","pull_request_review_id":157621750,"id":219444504,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTQ0NDUwNA==","diff_hunk":"@@ -113,6 +131,108 @@ pub trait Decode: Sized {\n /// Trait that allows zero-copy read/write of value-references to/from slices in LE format.\n pub trait Codec: Decode + Encode {}\n \n+/// Compact-encoded variant of T. This is more space-efficient but less compute-efficient.\n+pub struct Compact<T>(T);","path":"src/codec.rs","position":30,"original_position":30,"commit_id":"4942f1445e01293f2f1785d565f833a6febf7344","original_commit_id":"4942f1445e01293f2f1785d565f833a6febf7344","user":{"login":"rphmeier","id":10121380,"node_id":"MDQ6VXNlcjEwMTIxMzgw","avatar_url":"https://avatars1.githubusercontent.com/u/10121380?v=4","gravatar_id":"","url":"https://api.github.com/users/rphmeier","html_url":"https://github.com/rphmeier","followers_url":"https://api.github.com/users/rphmeier/followers","following_url":"https://api.github.com/users/rphmeier/following{/other_user}","gists_url":"https://api.github.com/users/rphmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/rphmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rphmeier/subscriptions","organizations_url":"https://api.github.com/users/rphmeier/orgs","repos_url":"https://api.github.com/users/rphmeier/repos","events_url":"https://api.github.com/users/rphmeier/events{/privacy}","received_events_url":"https://api.github.com/users/rphmeier/received_events","type":"User","site_admin":false},"body":"`From` and `Into` implementations would be great too.","created_at":"2018-09-21T09:54:08Z","updated_at":"2018-09-21T09:54:08Z","html_url":"https://github.com/paritytech/parity-codec/pull/5#discussion_r219444504","pull_request_url":"https://api.github.com/repos/paritytech/parity-codec/pulls/5","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/paritytech/parity-codec/pulls/comments/219444504"},"html":{"href":"https://github.com/paritytech/parity-codec/pull/5#discussion_r219444504"},"pull_request":{"href":"https://api.github.com/repos/paritytech/parity-codec/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/paritytech/parity-codec/pulls/5","id":217227878,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3MjI3ODc4","html_url":"https://github.com/paritytech/parity-codec/pull/5","diff_url":"https://github.com/paritytech/parity-codec/pull/5.diff","patch_url":"https://github.com/paritytech/parity-codec/pull/5.patch","issue_url":"https://api.github.com/repos/paritytech/parity-codec/issues/5","number":5,"state":"open","locked":false,"title":"Compact encoding","user":{"login":"gavofyork","id":138296,"node_id":"MDQ6VXNlcjEzODI5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/138296?v=4","gravatar_id":"","url":"https://api.github.com/users/gavofyork","html_url":"https://github.com/gavofyork","followers_url":"https://api.github.com/users/gavofyork/followers","following_url":"https://api.github.com/users/gavofyork/following{/other_user}","gists_url":"https://api.github.com/users/gavofyork/gists{/gist_id}","starred_url":"https://api.github.com/users/gavofyork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavofyork/subscriptions","organizations_url":"https://api.github.com/users/gavofyork/orgs","repos_url":"https://api.github.com/users/gavofyork/repos","events_url":"https://api.github.com/users/gavofyork/events{/privacy}","received_events_url":"https://api.github.com/users/gavofyork/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-21T09:42:51Z","updated_at":"2018-09-21T09:54:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f021fc048629b93335c396a0edcea189514461a9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/paritytech/parity-codec/pulls/5/commits","review_comments_url":"https://api.github.com/repos/paritytech/parity-codec/pulls/5/comments","review_comment_url":"https://api.github.com/repos/paritytech/parity-codec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paritytech/parity-codec/issues/5/comments","statuses_url":"https://api.github.com/repos/paritytech/parity-codec/statuses/4942f1445e01293f2f1785d565f833a6febf7344","head":{"label":"paritytech:gav-compact","ref":"gav-compact","sha":"4942f1445e01293f2f1785d565f833a6febf7344","user":{"login":"paritytech","id":14176906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc2OTA2","avatar_url":"https://avatars2.githubusercontent.com/u/14176906?v=4","gravatar_id":"","url":"https://api.github.com/users/paritytech","html_url":"https://github.com/paritytech","followers_url":"https://api.github.com/users/paritytech/followers","following_url":"https://api.github.com/users/paritytech/following{/other_user}","gists_url":"https://api.github.com/users/paritytech/gists{/gist_id}","starred_url":"https://api.github.com/users/paritytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paritytech/subscriptions","organizations_url":"https://api.github.com/users/paritytech/orgs","repos_url":"https://api.github.com/users/paritytech/repos","events_url":"https://api.github.com/users/paritytech/events{/privacy}","received_events_url":"https://api.github.com/users/paritytech/received_events","type":"Organization","site_admin":false},"repo":{"id":148650739,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg2NTA3Mzk=","name":"parity-codec","full_name":"paritytech/parity-codec","private":false,"owner":{"login":"paritytech","id":14176906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc2OTA2","avatar_url":"https://avatars2.githubusercontent.com/u/14176906?v=4","gravatar_id":"","url":"https://api.github.com/users/paritytech","html_url":"https://github.com/paritytech","followers_url":"https://api.github.com/users/paritytech/followers","following_url":"https://api.github.com/users/paritytech/following{/other_user}","gists_url":"https://api.github.com/users/paritytech/gists{/gist_id}","starred_url":"https://api.github.com/users/paritytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paritytech/subscriptions","organizations_url":"https://api.github.com/users/paritytech/orgs","repos_url":"https://api.github.com/users/paritytech/repos","events_url":"https://api.github.com/users/paritytech/events{/privacy}","received_events_url":"https://api.github.com/users/paritytech/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/paritytech/parity-codec","description":"Lightweight, efficient, binary serialization and deserialization codec","fork":false,"url":"https://api.github.com/repos/paritytech/parity-codec","forks_url":"https://api.github.com/repos/paritytech/parity-codec/forks","keys_url":"https://api.github.com/repos/paritytech/parity-codec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paritytech/parity-codec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paritytech/parity-codec/teams","hooks_url":"https://api.github.com/repos/paritytech/parity-codec/hooks","issue_events_url":"https://api.github.com/repos/paritytech/parity-codec/issues/events{/number}","events_url":"https://api.github.com/repos/paritytech/parity-codec/events","assignees_url":"https://api.github.com/repos/paritytech/parity-codec/assignees{/user}","branches_url":"https://api.github.com/repos/paritytech/parity-codec/branches{/branch}","tags_url":"https://api.github.com/repos/paritytech/parity-codec/tags","blobs_url":"https://api.github.com/repos/paritytech/parity-codec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paritytech/parity-codec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paritytech/parity-codec/git/refs{/sha}","trees_url":"https://api.github.com/repos/paritytech/parity-codec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paritytech/parity-codec/statuses/{sha}","languages_url":"https://api.github.com/repos/paritytech/parity-codec/languages","stargazers_url":"https://api.github.com/repos/paritytech/parity-codec/stargazers","contributors_url":"https://api.github.com/repos/paritytech/parity-codec/contributors","subscribers_url":"https://api.github.com/repos/paritytech/parity-codec/subscribers","subscription_url":"https://api.github.com/repos/paritytech/parity-codec/subscription","commits_url":"https://api.github.com/repos/paritytech/parity-codec/commits{/sha}","git_commits_url":"https://api.github.com/repos/paritytech/parity-codec/git/commits{/sha}","comments_url":"https://api.github.com/repos/paritytech/parity-codec/comments{/number}","issue_comment_url":"https://api.github.com/repos/paritytech/parity-codec/issues/comments{/number}","contents_url":"https://api.github.com/repos/paritytech/parity-codec/contents/{+path}","compare_url":"https://api.github.com/repos/paritytech/parity-codec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paritytech/parity-codec/merges","archive_url":"https://api.github.com/repos/paritytech/parity-codec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paritytech/parity-codec/downloads","issues_url":"https://api.github.com/repos/paritytech/parity-codec/issues{/number}","pulls_url":"https://api.github.com/repos/paritytech/parity-codec/pulls{/number}","milestones_url":"https://api.github.com/repos/paritytech/parity-codec/milestones{/number}","notifications_url":"https://api.github.com/repos/paritytech/parity-codec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paritytech/parity-codec/labels{/name}","releases_url":"https://api.github.com/repos/paritytech/parity-codec/releases{/id}","deployments_url":"https://api.github.com/repos/paritytech/parity-codec/deployments","created_at":"2018-09-13T14:31:38Z","updated_at":"2018-09-14T09:29:23Z","pushed_at":"2018-09-21T09:49:48Z","git_url":"git://github.com/paritytech/parity-codec.git","ssh_url":"git@github.com:paritytech/parity-codec.git","clone_url":"https://github.com/paritytech/parity-codec.git","svn_url":"https://github.com/paritytech/parity-codec","homepage":null,"size":31,"stargazers_count":3,"watchers_count":3,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":4,"watchers":3,"default_branch":"master"}},"base":{"label":"paritytech:master","ref":"master","sha":"f616e8fc1435855b661cdf3447d8173b22ef3842","user":{"login":"paritytech","id":14176906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc2OTA2","avatar_url":"https://avatars2.githubusercontent.com/u/14176906?v=4","gravatar_id":"","url":"https://api.github.com/users/paritytech","html_url":"https://github.com/paritytech","followers_url":"https://api.github.com/users/paritytech/followers","following_url":"https://api.github.com/users/paritytech/following{/other_user}","gists_url":"https://api.github.com/users/paritytech/gists{/gist_id}","starred_url":"https://api.github.com/users/paritytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paritytech/subscriptions","organizations_url":"https://api.github.com/users/paritytech/orgs","repos_url":"https://api.github.com/users/paritytech/repos","events_url":"https://api.github.com/users/paritytech/events{/privacy}","received_events_url":"https://api.github.com/users/paritytech/received_events","type":"Organization","site_admin":false},"repo":{"id":148650739,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg2NTA3Mzk=","name":"parity-codec","full_name":"paritytech/parity-codec","private":false,"owner":{"login":"paritytech","id":14176906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc2OTA2","avatar_url":"https://avatars2.githubusercontent.com/u/14176906?v=4","gravatar_id":"","url":"https://api.github.com/users/paritytech","html_url":"https://github.com/paritytech","followers_url":"https://api.github.com/users/paritytech/followers","following_url":"https://api.github.com/users/paritytech/following{/other_user}","gists_url":"https://api.github.com/users/paritytech/gists{/gist_id}","starred_url":"https://api.github.com/users/paritytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paritytech/subscriptions","organizations_url":"https://api.github.com/users/paritytech/orgs","repos_url":"https://api.github.com/users/paritytech/repos","events_url":"https://api.github.com/users/paritytech/events{/privacy}","received_events_url":"https://api.github.com/users/paritytech/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/paritytech/parity-codec","description":"Lightweight, efficient, binary serialization and deserialization codec","fork":false,"url":"https://api.github.com/repos/paritytech/parity-codec","forks_url":"https://api.github.com/repos/paritytech/parity-codec/forks","keys_url":"https://api.github.com/repos/paritytech/parity-codec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paritytech/parity-codec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paritytech/parity-codec/teams","hooks_url":"https://api.github.com/repos/paritytech/parity-codec/hooks","issue_events_url":"https://api.github.com/repos/paritytech/parity-codec/issues/events{/number}","events_url":"https://api.github.com/repos/paritytech/parity-codec/events","assignees_url":"https://api.github.com/repos/paritytech/parity-codec/assignees{/user}","branches_url":"https://api.github.com/repos/paritytech/parity-codec/branches{/branch}","tags_url":"https://api.github.com/repos/paritytech/parity-codec/tags","blobs_url":"https://api.github.com/repos/paritytech/parity-codec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paritytech/parity-codec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paritytech/parity-codec/git/refs{/sha}","trees_url":"https://api.github.com/repos/paritytech/parity-codec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paritytech/parity-codec/statuses/{sha}","languages_url":"https://api.github.com/repos/paritytech/parity-codec/languages","stargazers_url":"https://api.github.com/repos/paritytech/parity-codec/stargazers","contributors_url":"https://api.github.com/repos/paritytech/parity-codec/contributors","subscribers_url":"https://api.github.com/repos/paritytech/parity-codec/subscribers","subscription_url":"https://api.github.com/repos/paritytech/parity-codec/subscription","commits_url":"https://api.github.com/repos/paritytech/parity-codec/commits{/sha}","git_commits_url":"https://api.github.com/repos/paritytech/parity-codec/git/commits{/sha}","comments_url":"https://api.github.com/repos/paritytech/parity-codec/comments{/number}","issue_comment_url":"https://api.github.com/repos/paritytech/parity-codec/issues/comments{/number}","contents_url":"https://api.github.com/repos/paritytech/parity-codec/contents/{+path}","compare_url":"https://api.github.com/repos/paritytech/parity-codec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paritytech/parity-codec/merges","archive_url":"https://api.github.com/repos/paritytech/parity-codec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paritytech/parity-codec/downloads","issues_url":"https://api.github.com/repos/paritytech/parity-codec/issues{/number}","pulls_url":"https://api.github.com/repos/paritytech/parity-codec/pulls{/number}","milestones_url":"https://api.github.com/repos/paritytech/parity-codec/milestones{/number}","notifications_url":"https://api.github.com/repos/paritytech/parity-codec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paritytech/parity-codec/labels{/name}","releases_url":"https://api.github.com/repos/paritytech/parity-codec/releases{/id}","deployments_url":"https://api.github.com/repos/paritytech/parity-codec/deployments","created_at":"2018-09-13T14:31:38Z","updated_at":"2018-09-14T09:29:23Z","pushed_at":"2018-09-21T09:49:48Z","git_url":"git://github.com/paritytech/parity-codec.git","ssh_url":"git@github.com:paritytech/parity-codec.git","clone_url":"https://github.com/paritytech/parity-codec.git","svn_url":"https://github.com/paritytech/parity-codec","homepage":null,"size":31,"stargazers_count":3,"watchers_count":3,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paritytech/parity-codec/pulls/5"},"html":{"href":"https://github.com/paritytech/parity-codec/pull/5"},"issue":{"href":"https://api.github.com/repos/paritytech/parity-codec/issues/5"},"comments":{"href":"https://api.github.com/repos/paritytech/parity-codec/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/paritytech/parity-codec/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/paritytech/parity-codec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paritytech/parity-codec/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/paritytech/parity-codec/statuses/4942f1445e01293f2f1785d565f833a6febf7344"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"rphmeier"}}