Skip to content

Fix publisher flush behaviour #24

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
merged 5 commits into from
Oct 23, 2023
Merged

Conversation

mempirate
Copy link
Contributor

Previously, the flush interval would wake up the session task every time it expired, regardless of wether there was any need for flushing or not. This PR fixes that by adding some resets to the interval so it doesn't wake up the task as frequently.

@mempirate
Copy link
Contributor Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@merklefruit
Copy link
Contributor

Are there any performance diffs associated with this change?

@mempirate
Copy link
Contributor Author

@merklefruit there was a 2% decrease in poll_flush in the flamegraph, but it would depend on how tight your flush interval is compared to the throughput. I added the last benchmark results as a comment above the benches themselves, we should probably have some better way of keeping track of this

@merklefruit
Copy link
Contributor

Criterion has this nice API to keep track of benchmark changes: https://bheisler.github.io/criterion.rs/book/user_guide/command_line_output.html#change

Copy link
Contributor

@merklefruit merklefruit left a comment

Choose a reason for hiding this comment

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

LGTM

@mempirate mempirate merged commit 10cef1b into main Oct 23, 2023
@merklefruit merklefruit deleted the fix/publisher-flush-behaviour branch December 20, 2023 13:29
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