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

Move output batch size calculation out of synchronized block #21415

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

thll
Copy link
Contributor

@thll thll commented Jan 23, 2025

Moves output batch size calculation out of a synchronized block.

Output batch size calculation happens in a hot code path where we should limit code execution within synchronized blocks.
It's probably a micro-optimization because the limiting operation will be batch flushing, but nevertheless, it's good practice.

/nocl

@thll thll requested review from bernd and kroepke January 27, 2025 13:05
@thll thll marked this pull request as ready for review January 27, 2025 13:05
@thll thll merged commit 78ff05b into master Jan 27, 2025
6 checks passed
@thll thll deleted the fix/synchronized-batch-size-calculation branch January 27, 2025 13:13
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