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

Prevent interrupting/recreating the expiration fiber too often #96

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

nox213
Copy link
Contributor

@nox213 nox213 commented Nov 1, 2023

If we have a high volume of requests per unit time coming to an single actor, we will experience performance degradation due to having to constantly interrupt and regenerate the expiration fiber. This PR avoids regenerating the fiber each time by storing when the fiber last received a message and calculating how long it should wait from that.

@nox213 nox213 self-assigned this Nov 1, 2023
@ghostdogpr ghostdogpr changed the title Renew expiration fiber instead of recreating it Prevent interrupting/recreating the expiration fiber too often Nov 1, 2023
@ghostdogpr ghostdogpr merged commit 911a90f into series/2.x Nov 1, 2023
4 checks passed
@ghostdogpr ghostdogpr deleted the optimize_send branch November 1, 2023 07:24
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