-
Notifications
You must be signed in to change notification settings - Fork 123
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 chunked concurrency to avoid thread signalling #2637
Conversation
2f892f6
to
ddd4737
Compare
Sample runs on testnet:
|
@@ -2991,6 +2992,10 @@ bool CChainState::ConnectBlock(const CBlock &block, | |||
auto isEvmEnabledForBlock = blockCtx.GetEVMEnabledForBlock(); | |||
auto &evmTemplate = blockCtx.GetEVMTemplate(); | |||
|
|||
std::vector<CEvmTxMessage> evmTxMsgs; | |||
std::vector<std::vector<CEvmTxMessage>> evmTxMsgsPools; | |||
TaskGroup evmEccPreCacheTaskPool; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we define this in ConnectTip so we can call MarkCancelAndWaitForCompletion there instead of having to call it on every failure or success in ConnectBlock.
#2639 provided better performance for now. Closing as more granular per task optimisation at a later stage is a better direction than this workaround, |
Summary
Implications
Storage
Consensus