reads gossip push messages off crds ordinal index
Having an ordinal index on crds values based on insert order allows to efficiently filter values using a cursor. In particular CrdsGossipPush::push_messages hash-map can be replaced with a cursor, saving on the bookkeepings, purging, etc
This commit is contained in:
@ -415,7 +415,10 @@ fn network_run_push(
|
||||
}
|
||||
total = network_values
|
||||
.par_iter()
|
||||
.map(|v| v.lock().unwrap().push.num_pending())
|
||||
.map(|node| {
|
||||
let gossip = node.gossip.lock().unwrap();
|
||||
gossip.push.num_pending(&gossip.crds)
|
||||
})
|
||||
.sum();
|
||||
trace!(
|
||||
"network_run_push_{}: now: {} queue: {} bytes: {} num_msgs: {} prunes: {} stake_pruned: {} delivered: {}",
|
||||
|
Reference in New Issue
Block a user