Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

collation-generation: Support compressed PoVs directly#4825

Merged
bkchr merged 2 commits intomasterfrom
bkchr-introduce-maybe-compressed
Feb 7, 2022
Merged

collation-generation: Support compressed PoVs directly#4825
bkchr merged 2 commits intomasterfrom
bkchr-introduce-maybe-compressed

Conversation

@bkchr
Copy link
Copy Markdown
Member

@bkchr bkchr commented Feb 1, 2022

This adds support for returning a compressed PoV directly to the
collation generation. This is mainly to not requiring to compress a PoV
twice.

cumulus companion: paritytech/cumulus#942

This adds support for returning a compressed PoV directly to the
collation generation. This is mainly to not requiring to compress a PoV
twice.
@bkchr bkchr added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Feb 1, 2022
@bkchr bkchr requested a review from ordian February 7, 2022 15:56
@bkchr bkchr merged commit 9273b5a into master Feb 7, 2022
@bkchr bkchr deleted the bkchr-introduce-maybe-compressed branch February 7, 2022 19:14
@burdges
Copy link
Copy Markdown
Contributor

burdges commented Feb 7, 2022

I asked this before but forgot..

Do we benefit much from compressed PoVs? I'd assume our merkle proofs wind up incompressible? Or did we mess up sometihng there and it would up easier to just compress them? Or maybe this is just the actual block data?

@bkchr
Copy link
Copy Markdown
Member Author

bkchr commented Feb 7, 2022

We did not really test it. I would say it depends on the data that is part of the state proof.

@xlc
Copy link
Copy Markdown
Contributor

xlc commented Feb 7, 2022

While compact encoding is used for extrinsic, they are not (generally) used for storages. So that means balances will have a lot of empty bytes which are potentially compressible.

ordian added a commit that referenced this pull request Feb 8, 2022
* master:
  Bump trie-db from 0.23.0 to 0.23.1 (#4867)
  Ignore redundant dispute messages (#4854)
  collation-generation: Support compressed PoVs directly (#4825)
  Forward `enable_overseer_always` (#4858)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants