Process gossip block immediately - #5263
Merged
twoeths merged 4 commits intoMar 28, 2023
Merged
Conversation
Contributor
Performance Report鉁旓笍 no performance regression detected Full benchmark results
|
dapplion
reviewed
Mar 13, 2023
twoeths
marked this pull request as ready for review
March 13, 2023 09:50
dapplion
reviewed
Mar 14, 2023
| // Check canAcceptWork before calling queue.next() since it consumes the items | ||
| // beacon block is guaranteed to be processed immedately | ||
| const bypassQueue = executeGossipWorkOrderObj[topic]?.bypassQueue ?? false; | ||
| if (!bypassQueue && (!this.chain.blsThreadPoolCanAcceptWork() || !this.chain.regenCanAcceptWork())) { |
Contributor
There was a problem hiding this comment.
This will cause to have to call canAcceptWork many more times. Why not:
const canAcceptWork = this.chain.blsThreadPoolCanAcceptWork() && this.chain.regenCanAcceptWork()
for (const topic of executeGossipWorkOrder) {
// Check canAcceptWork before calling queue.next() since it consumes the items
// beacon block is guaranteed to be processed immedately
if ( !canAcceptWork && !executeGossipWorkOrderObj[topic].bypassQueue) {
break job_loop;
}
Member
Author
There was a problem hiding this comment.
good point 馃憤 , I modified accordingly
twoeths
marked this pull request as draft
March 15, 2023 03:54
Member
Author
|
convert to draft, new gossipsub queue work will be reverted once we merge stable v1.6.0 to unstable |
dapplion
previously approved these changes
Mar 19, 2023
twoeths
force-pushed
the
tuyen/process_gossip_block_immediately
branch
from
March 28, 2023 03:01
2214686 to
b1a2726
Compare
twoeths
marked this pull request as ready for review
March 28, 2023 03:01
Member
Author
|
Merged to tuyen/new_gossip_queues as pre-approved by @dapplion |
twoeths
added a commit
that referenced
this pull request
Apr 7, 2023
* Process gossip block immediately * Process beacon_block_and_blobs_sidecar gossip object immediately * New WorkOpts type * Check canAceptWork once per executeWork()
wemeetagain
pushed a commit
that referenced
this pull request
Apr 7, 2023
* Process gossip block immediately * Process beacon_block_and_blobs_sidecar gossip object immediately * New WorkOpts type * Check canAceptWork once per executeWork()
Member
|
馃帀 This PR is included in v1.8.0 馃帀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
beacon_block*topicpart of #5247