forked from apfitzge/agave
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generalizes sample-size in quic::ConnectionTable::prune_random (solan…
…a-labs#31011) Even if there are many connections with stake less than the threshold_stake, prune_random might still reject if both randomly sampled connections have stake bigger than the threshold. A bigger sample-size will make this less likely (at the cost of more computations): https://github.com/solana-labs/solana/blob/2cbd5d6c9/streamer/src/nonblocking/quic.rs#L958-L985 In order to benchmark for an optimal sample-size, the commit generalizes the sample-size and makes it configurable.
- Loading branch information
1 parent
8c860e9
commit 3cb2245
Showing
1 changed file
with
29 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters