Skip to content

Add event batching to hb_event#757

Merged
samcamwilliams merged 5 commits intoimpr/gunfrom
impr/eventbatching
Mar 17, 2026
Merged

Add event batching to hb_event#757
samcamwilliams merged 5 commits intoimpr/gunfrom
impr/eventbatching

Conversation

@shyba
Copy link

@shyba shyba commented Mar 17, 2026

Process increment events in batches and reduces the amount of querying the mailbox size.

Two benchmarks included and a correctness test to check that batching did not break event counters.

Original problem (there is a benchmark/test showing it): We are unable to drain fast enough and it gets slow as the mailbox grows, up to a point where it cant keep up. That point is far from the limits we have configured, so the alternative to this PR is setting it to 5MB (currently 1GB). That is not necessary with this PR as we can drain 1GB instantly.

@samcamwilliams samcamwilliams merged commit dad7ea1 into impr/gun Mar 17, 2026
@samcamwilliams samcamwilliams deleted the impr/eventbatching branch March 17, 2026 16:56
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.

3 participants