-
Notifications
You must be signed in to change notification settings - Fork 341
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
In #437 we fixed bugs to Stream::merge
. There is another improvement we may want to apply here:
Randomization
If two items from Stream::merge
are ready at the same time, we will always pick the item from the first stream first. We should probably apply some randomization here to make it so we don't exhaust one stream completely before starting the other. This should reduce overall latency in some cases, as it becomes more "fair".
We can use utils::random
for this purpose.
kellytk
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers