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

feat: improve prepareNextEpoch #7171

Draft
wants to merge 10 commits into
base: unstable
Choose a base branch
from
Draft

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Oct 17, 2024

Motivation

Reduce prepareNextEpoch time for lodestar

Description

  • use hashtree for batch hash implemented in ssz
    • copy the implementation of ListValidatorTreeViewDU from the ssz branch, the main thing is to compute validators' roots in batch during commit() phase
    • batch hash validators, execute HashComputation[] in batch
  • avoid memory allocation:
    • no tree creation when we modify/add validator
    • reuse balances tree

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.

1 participant