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

cache shuffling separately from other EpochRef data (fixes #2677) #3990

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

arnetheduck
Copy link
Member

In order to avoid full replays when validating attestations hailing from
untaken forks, it's better to keep shufflings separate from EpochRef
and perform a lookahead on the shuffling when processing the block that
determines them.

This also helps performance in the case where REST clients are trying to
perform lookahead on attestation duties and decreases memory usage by
sharing shufflings between EpochRef instances of the same dependent
root.

In order to avoid full replays when validating attestations hailing from
untaken forks, it's better to keep shufflings separate from `EpochRef`
and perform a lookahead on the shuffling when processing the block that
determines them.

This also helps performance in the case where REST clients are trying to
perform lookahead on attestation duties and decreases memory usage by
sharing shufflings between EpochRef instances of the same dependent
root.
@github-actions
Copy link

Unit Test Results

       12 files  ±0       860 suites  ±0   1h 19m 2s ⏱️ + 6m 38s
  1 975 tests ±0    1 828 ✔️ ±0  147 💤 ±0  0 ±0 
10 601 runs  ±0  10 411 ✔️ ±0  190 💤 ±0  0 ±0 

Results for commit 899e629. ± Comparison against base commit 3ad1d25.

@zah zah merged commit 0d9fd54 into unstable Aug 18, 2022
@zah zah deleted the shuffling-cache branch August 18, 2022 18:07
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.

2 participants