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

Add stream online players method #2457

Merged

Conversation

ImMorpheus
Copy link
Contributor

onlinePlayers is creating a copy of the collection on each call.

This can get costly on large server, especially because the scheduler is calling that method on each tick.

@ImMorpheus ImMorpheus merged commit f69db9f into SpongePowered:api-10 Apr 22, 2023
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.

1 participant