You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: