solana/gossip
behzad nouri b3887af7c6
flattens the internal buffer in the duplicate-shreds handler (#30196)
Duplicate-shreds handler is using a nested hash-map for the incomplete
chunks buffered. This is resulting in a convoluted logic to limit the
number of entries:
https://github.com/solana-labs/solana/blob/427bd6264/gossip/src/duplicate_shred_handler.rs#L62

This commit instead uses a flat buffer mapping (Slot, Pubkey) pairs to
the respective duplicate shreds chunks. The buffer is allowed to grow to
twice the intended capacity, at which point the extraneous entries are
removed in linear time, resulting an amortized O(1) performance.
2023-02-09 16:33:20 +00:00
..
benches removes legacy weighted_shuffle and weighted_best methods (#24125) 2022-04-05 19:19:22 +00:00
src flattens the internal buffer in the duplicate-shreds handler (#30196) 2023-02-09 16:33:20 +00:00
tests removes legacy retransmit tests (#29817) 2023-01-21 22:28:48 +00:00
.gitignore
Cargo.toml Bump serde from 1.0.144 to 1.0.152 (#29696) 2023-02-01 16:27:17 -07:00
build.rs Move gossip modules into solana-gossip crate (#17352) 2021-05-26 09:15:46 -06:00