forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minimizes CrdsValue cloning during gossip push while holding CRDS tab…
…le lock (#4635) In CrdsGossipPush::new_push_messages a CrdsValue is repeatedly cloned for each node it is pushed to while holding a lock on the CRDS table: https://github.com/anza-xyz/agave/blob/85e8f86f9/gossip/src/crds_gossip_push.rs#L203 This commit instead populates a vector of _unique_ entries pushed out and uses indices into this vector. Doing so there will be only one clone if the value is pushed to any number of nodes.
- Loading branch information
1 parent
c1fb66b
commit e208c63
Showing
5 changed files
with
106 additions
and
83 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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