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

Debounce performance improvements #1228

Merged
merged 4 commits into from
Jan 26, 2021
Merged

Conversation

Half-Shot
Copy link
Contributor

Currently the debouncer does too much work when a netsplit is ongoing. It will immediately try to send QUITs for a channel as soon as it sees anyone join it from the IRC side, and it will also repeatedly send those QUITs because the list of nicks is not removed afterwards. This PR aims to fix those things.

This PR changes the debounce code so that:

  • We now log when a debounce has begun, for easy tracing in the logs.
  • We only try to send QUITs after a random interval of time (between min,max in the config), rather than as soon as we see the first join.
  • ❗ We do not reprocess the QUIT queue for the same channel

@Half-Shot Half-Shot requested a review from a team January 25, 2021 18:08
Copy link
Member

@benparsons benparsons left a comment

Choose a reason for hiding this comment

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

lgtm

@Half-Shot Half-Shot merged commit 905b628 into develop Jan 26, 2021
@Half-Shot Half-Shot deleted the hs/debounce-improvements branch January 26, 2021 10:22
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