solana/core
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
src includes zero weighted entries in WeightedShuffle (#22829) 2022-01-31 16:23:50 +00:00
tests (Ledger Store Benchmark) Display storage size of all data shreds (#22445) 2022-01-19 19:33:08 -08:00
.gitignore
Cargo.toml chore: bump serde from 1.0.134 to 1.0.136 (#22817) 2022-01-28 12:20:37 -07:00
build.rs