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

Add parallelism when performing multiple tasks at the same that can benefit from it #48

Merged
merged 16 commits into from
Jun 1, 2024

Conversation

remyroy
Copy link
Member

@remyroy remyroy commented May 23, 2024

This PR adds parallelism using the ProcessPoolExecutor when and where we can benefit from executing multiple tasks on potentially multiple cores. This speeds up keys generation, keystores generation, voluntary exits generation and a bunch of verification especially when multiples are requested. It will default to using number of processors on the machine for the number of workers.

Fixes #40

Introduces #47

Copy link
Collaborator

@valefar-on-discord valefar-on-discord left a comment

Choose a reason for hiding this comment

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

Few minor questions

staking_deposit/cli/generate_bls_to_execution_change.py Outdated Show resolved Hide resolved
staking_deposit/cli/exit_transaction_mnemonic.py Outdated Show resolved Hide resolved
staking_deposit/utils/validation.py Outdated Show resolved Hide resolved
@remyroy
Copy link
Member Author

remyroy commented May 27, 2024

There seems to be a lingering issue with this PR and the unit tests in #49 . Let me fix it before finishing the review.

@remyroy
Copy link
Member Author

remyroy commented May 28, 2024

The c35380e commit should fix #49. There seems to be another unit test issue in https://github.com/eth-educators/ethstaker-deposit-cli/actions/runs/9273010996/job/25512131191?pr=48 which need more fixes.

@remyroy
Copy link
Member Author

remyroy commented May 28, 2024

It seems like all remaining issues are fixed. You can have another look @valefar-on-discord .

@valefar-on-discord valefar-on-discord merged commit 84e0e1e into eth-educators:main Jun 1, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants