-
Notifications
You must be signed in to change notification settings - Fork 58
feat(starfish): Limit synchronizer parallelism and add cache for verified blocks #9381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
feat(starfish): Limit synchronizer parallelism and add cache for verified blocks #9381
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 6 Skipped Deployments
|
| && authorities.get(&peer).is_none() | ||
| { | ||
|
|
||
| // Check if this peer is already fetching this block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // Check if this peer is already fetching this block | |
| // Check if this peer is already fetching this header |
| continue; | ||
| } | ||
|
|
||
| // Count total authorities currently fetching this block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // Count total authorities currently fetching this block | |
| // Count total authorities currently fetching this header |
polinikita
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For starfish, this seems to be less important improvement as the most heavy operation is the signature verification which takes 50-100microseconds.
Description of change
This is a PR to test a potential fix for an issue with the header synchronizer. It limits parallelism of fetching blocks in the HeaderSynchronizer and implements an additional filter to avoid processing redundantly fetched blocks which should reduce CPU usage.
Links to any relevant issues
Resolves #9357
How the change has been tested