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

use worker pool to concurrently calculate key-val pairs from tx #988

Open
wants to merge 3 commits into
base: zkevm
Choose a base branch
from

Conversation

louisliu2048
Copy link

No description provided.

@cla-bot cla-bot bot added the cla-signed label Aug 20, 2024
Copy link

sonarcloud bot commented Aug 20, 2024

@V-Staykov
Copy link
Collaborator

Does this actually produce good results? For just several transactions, up to at most a few hundred, the resources used to start the new routines might be more than just calculating the pairs sync.

@V-Staykov
Copy link
Collaborator

@louisliu2048 I've benchmarked the sync and async version of this and your changes do make sence for blocks with more than 10 transactions or so. Le'ts leave the old sync function and sheck the number of txs in the block and choose async execution if they are more than 10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants