Skip to content

Check for new events more often in batched stream. #2123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

annagrin
Copy link
Contributor

@annagrin annagrin commented May 25, 2023

I noticed in my expression evaluation experiments that changing the delay in batched stream to 100ms from 200ms does not always change how often the batches are emitted, due to waiting time for the next event being greater than the delay.

Fix that by making the duration we use for waiting for a new event a fraction of the batch delay.

Not adding tests since the behavior is not supposed to change, only the timing.

@annagrin annagrin changed the title Make wait time for events to batch depend on batch time Check for new events more often in batched stream. May 25, 2023
@annagrin annagrin merged commit d442fa8 into dart-lang:master May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants