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

Connections Map changed to Each in ping task #45378

Merged
merged 1 commit into from
Jun 16, 2022
Merged

Conversation

malis
Copy link
Contributor

@malis malis commented Jun 16, 2022

No need to make new array containing all connections because returned value of map is not used.

New array of size of connections was allocated every BEAT_INTERVAL (default 3 seconds) for garbage collector to clean up right after.

No need to make new array containing all connections because returned value of map is not used
@matthewd
Copy link
Member

Thanks! It looks like this has always been this way, for no apparent reason. As you note, the resulting array gets immediately discarded.

@matthewd matthewd merged commit 8a52f9b into rails:main Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants