Skip to content
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

Use latest block header + slot as skip slot cache key #8443

Merged
merged 4 commits into from
Feb 13, 2021

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Feb 12, 2021

What type of PR is this?

Feature

What does this PR do? Why is it needed?

Having to HTR for beacon state for skip slot cache key is inefficient. See flame graphs:

  • During initial sync
    Screen Shot 2021-02-12 at 9 05 12 AM

  • Regular run time
    Screen Shot 2021-02-12 at 9 06 23 AM

After they no longer appear in the flame graphs

Instead we can do better by HTR the latest block header and hash it with current state slot. This should be much nicer to the memory and CPU.

Which issues(s) does this PR fix?

N/A

Other notes for review

N/A

@prylabs-bulldozer prylabs-bulldozer bot merged commit 28839fb into develop Feb 13, 2021
@delete-merged-branch delete-merged-branch bot deleted the use-latest-block-header branch February 13, 2021 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants