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

perf: Subscriber performance #578

Merged
merged 23 commits into from
Nov 12, 2021
Merged

Conversation

kevburnsjr
Copy link
Contributor

Significantly improves memory usage and throughput with large number of subscribers.

@CLAassistant
Copy link

CLAassistant commented Nov 1, 2021

CLA assistant check
All committers have signed the CLA.

@dunglas dunglas merged commit a83db3f into dunglas:main Nov 12, 2021
@dunglas
Copy link
Owner

dunglas commented Nov 12, 2021

Thank you very, very much @kevburnsjr!

@dunglas
Copy link
Owner

dunglas commented Nov 12, 2021

Humm, it looks like we may have a data race @kevburnsjr: https://github.com/dunglas/mercure/runs/4192750294?check_suite_focus=true

}

// Disconnect disconnects the subscriber.
func (s *Subscriber) Disconnect() {
s.disconnectedOnce.Do(func() {
close(s.disconnected)
close(s.out)
Copy link
Owner

@dunglas dunglas Nov 13, 2021

Choose a reason for hiding this comment

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

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