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

Conversation

@andresilva
Copy link
Contributor

GRANDPA messages are localized when encoded, to include the round and set id they refer to. This means that given a message and a signature there's an extra step of intermediary encoding needed to do the verification. This PR re-uses the buffer used for encoding when verifying multiple messages at once (i.e. commits, catch-up requests and justifications).

@arkpar reported that checking of compact commits was showing up on the profiler as performing a lot of allocations.

@andresilva andresilva added A0-please_review Pull request needs code review. M4-core labels Jan 20, 2020
@andresilva andresilva requested a review from arkpar January 20, 2020 18:00
@andresilva andresilva merged commit f52ea97 into master Jan 21, 2020
@andresilva andresilva deleted the andre/grandpa-reduce-verification-allocation branch January 21, 2020 11:45
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants