Skip to content
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

Fix off-by-one capacity error when sizing target containers #450

Merged

Conversation

antiguru
Copy link
Member

No description provided.

Copy link
Member

@frankmcsherry frankmcsherry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, makes sense but could be we instead change the initial values to be 1 instead of 0?

@antiguru
Copy link
Member Author

Yes; we could change the default to 1, but then we'd allocate a container of size 1 even if there's no data to be pushed? Might add a cost where we create empty batches.

@frankmcsherry
Copy link
Member

Makes sense!

@frankmcsherry frankmcsherry merged commit 8c23284 into TimelyDataflow:master Dec 20, 2023
1 check passed
@antiguru antiguru deleted the batcher_count_capacity branch December 20, 2023 21:33
This was referenced Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants