Skip to content

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