Pull gossip queues for better throughput - #5350
Merged
Merged
Conversation
* Process gossip block immediately * Process beacon_block_and_blobs_sidecar gossip object immediately * New WorkOpts type * Check canAceptWork once per executeWork()
* Handle gossip messages async * Add comments
* Add computeSigningRoot benchmark test * Add utilities to extract AttestationData hash from serialized data * Implement SeenAttestationDatas * Do not cache state in AttestationDataCacheEntry * Add memory test * Fix getGossipDataHashFns() * Cache signingRoot and attDataRootHex * Apply SeenAttestationDatas cache to validateGossipAggregateAndProof() * Cache AttestationDatas of 3 most recent slots * Unit test SeenAttestationDatas * chain.attDataCacheSlotDistance cli option * Type gossip validation functions result * Use cached attDataRootHex in attestation opPools * Pass gossip serialized data to gossip validation function * slight refactor * Fix MockBeaconChain * Fix lint in MockBeaconChain * Fix validateGossipAttestation unit tests --------- Co-authored-by: Cayman <caymannava@gmail.com>
* Add sszBytes utils * Unknown Block Root queues * Use Uint8Array.subarray() * Merge tuyen/new_gossip_queues * Avoid forEach pattern * Process unknown attestations: yield to event loop * Fix metrics * Name variable and function as *attDataBase64 everywhere * Handle invalid serialized data * Check ssz data length of gossip messages
Contributor
Performance Report鉁旓笍 no performance regression detected Full benchmark results
|
wemeetagain
approved these changes
Apr 7, 2023
wemeetagain
marked this pull request as ready for review
April 7, 2023 16:41
This was referenced Apr 9, 2023
Closed
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
Get back #5195 with new improvement that make it comparable performance to
stableDescription
This is just an official merge of
tuyen/new_gossip_queuesbranch tounstable. It includes the below PRs:Closes #5247
Note: merge this with Merge Commit strategy
Test Result on feat1
vs. stable

vs stable
