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

Improve electra attestation aggregation #8346

Merged
merged 8 commits into from
May 30, 2024

Conversation

tbenr
Copy link
Contributor

@tbenr tbenr commented May 29, 2024

  • avoid recalculating starting positions when can be avoided (improved performance in calculation too)
  • improved lookup to last bit set in committee bits
  • avoid triggering ssz hashing on committee bits in isSuperSetOf
  • rewrote or, now is ~4x faster and consumes far less memory
    • added SszBitlist wrapBitSet constructor to operate directly with a bitSet
  • improved tests

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Copy link
Contributor

@StefanBratanov StefanBratanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tbenr tbenr enabled auto-merge (squash) May 30, 2024 12:47
@tbenr tbenr merged commit 568aef5 into Consensys:master May 30, 2024
16 checks passed
@tbenr tbenr deleted the improve-electra-attestation-aggregation branch May 30, 2024 13:15
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