solana/core/benches
behzad nouri 37c8842bcb
scans crds table in parallel for finding old labels (#13073)
From runtime profiles, the majority time of ClusterInfo::handle_purge
https://github.com/solana-labs/solana/blob/0776fa05c/core/src/cluster_info.rs#L1605-L1626
is spent scanning crds table finding old labels:
https://github.com/solana-labs/solana/blob/0776fa05c/core/src/crds.rs#L175-L197

This can be done in parallel given that gossip thread-pool:
https://github.com/solana-labs/solana/blob/0776fa05c/core/src/cluster_info.rs#L1637-L1641
is idle when handle_purge is invoked:
https://github.com/solana-labs/solana/blob/0776fa05c/core/src/cluster_info.rs#L1681
2020-10-23 14:17:37 +00:00
..
banking_stage.rs
blockstore.rs
cluster_info.rs
consensus.rs
crds.rs scans crds table in parallel for finding old labels (#13073) 2020-10-23 14:17:37 +00:00
crds_gossip_pull.rs
crds_shards.rs
gen_keys.rs
poh.rs
poh_verify.rs
retransmit_stage.rs
shredder.rs
sigverify_stage.rs