Skip to content

perf: compute all committees at once at the beginning of an epoch. #1245

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

Merged
merged 8 commits into from
Aug 6, 2024

Conversation

Arkenan
Copy link
Collaborator

@Arkenan Arkenan commented Jul 31, 2024

Changes:

  • Add compute_all_committees function that shuffles the full list of indices and then split the individual committees, which is more efficient than calculating each committee.
  • Add documentation for everything related to committees.
  • (unrelated) Refactor a date function for filenames in benchmarks and profile jobs.

@Arkenan Arkenan marked this pull request as ready for review August 5, 2024 15:38
@Arkenan Arkenan requested a review from a team as a code owner August 5, 2024 15:38
Copy link
Collaborator

@rodrigo-o rodrigo-o left a comment

Choose a reason for hiding this comment

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

LGTM! Kudos to the comments, they add a lot of clarity to the way everything is calculated, specially regarding the different type of indices, and the role of every argument. Added a small comment regarding a function simplification but it's just a matter of preference!

@Arkenan Arkenan merged commit d643d2d into main Aug 6, 2024
13 checks passed
@Arkenan Arkenan deleted the integrate-shuffling branch August 6, 2024 16:18
avilagaston9 pushed a commit that referenced this pull request Aug 9, 2024
# This is the 1st commit message:

chore(deps): bump jason from 1.4.3 to 1.4.4 (#1243)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
# This is the commit message #2:

feat: add keystore API phoenix endpoint

# This is the commit message #3:

feat: add  GET /keystores endpoint

# This is the commit message #4:

fix: update port flag

# This is the commit message #5:

feat: add post method

# This is the commit message #6:

refactor: validator manager genserver removal (#1244)


# This is the commit message #7:

refactor: save keystores into validators

# This is the commit message #8:

feat: add delete endpoint

# This is the commit message #9:

fix: delete/add endpoints

# This is the commit message #10:

fix: try fix ci

# This is the commit message #11:

fix: test

# This is the commit message #12:

refactor: enhace readability

# This is the commit message #13:

perf: compute all committees at once at the beginning of an epoch. (#1245)


# This is the commit message #14:

fix: use other validators slot when adding a new validator

# This is the commit message #15:

refactor: restore pruning

# This is the commit message #16:

Update README.md

# This is the commit message #17:

refactor: nit changes

# This is the commit message #18:

chore(deps): bump open_api_spex from 3.20.0 to 3.20.1 (#1252)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
# This is the commit message #19:

chore(deps-dev): bump recode from 0.7.2 to 0.7.3 (#1251)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants