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

collator-selection: Optimize length decoding #2851

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Jul 10, 2023

Instead of loading always the entire Vec into the runtime to just decode the length, we can directly use decode_len to get this info.

Instead of loading always the entire `Vec` into the runtime to just decode the length, we can
directly use `decode_len` to get this info.
@bkchr bkchr added B0-silent Changes should not be mentioned in any release notes A0-please_review Pull request needs code review. 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 Jul 10, 2023
@bkchr bkchr requested a review from joepetrowski July 10, 2023 22:23
@bkchr bkchr marked this pull request as ready for review July 10, 2023 22:23
@bkchr bkchr merged commit b15da70 into master Jul 11, 2023
@bkchr bkchr deleted the bkchr-optimize-collator-selection branch July 11, 2023 13:15
EgorPopelyaev pushed a commit that referenced this pull request Jul 12, 2023
Instead of loading always the entire `Vec` into the runtime to just decode the length, we can
directly use `decode_len` to get this info.
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.

3 participants