solana-with-rpc-optimizations/gossip
behzad nouri 604ca9316c
includes zero weighted entries in WeightedShuffle (#22829)
Current WeightedShuffle implementation excludes zero weighted entries
from the shuffle:
https://github.com/solana-labs/solana/blob/13e631dcf/gossip/src/weighted_shuffle.rs#L29-L30

Though mathematically this might make more sense, for our use-cases
(turbine specifically), this results in less efficient code:
https://github.com/solana-labs/solana/blob/13e631dcf/core/src/cluster_nodes.rs#L409-L430

This commit changes the implementation so that zero weighted indices are
also included in the shuffle but appear only at the end after non-zero
weighted indices.
2022-01-31 16:23:50 +00:00
..
benches adds metrics tracking crds writes and votes (#20953) 2021-10-26 13:02:30 +00:00
src includes zero weighted entries in WeightedShuffle (#22829) 2022-01-31 16:23:50 +00:00
tests convert std::sync::mpsc to crossbeam_channel (#22264) 2022-01-11 02:44:46 -08:00
.gitignore tmp dirs target to farf (#5079) 2019-07-12 18:28:42 -07:00
Cargo.toml chore: bump serde from 1.0.134 to 1.0.136 (#22817) 2022-01-28 12:20:37 -07:00
build.rs Move gossip modules into solana-gossip crate (#17352) 2021-05-26 09:15:46 -06:00