Skip to content

Conversation

@Rainyan
Copy link
Collaborator

@Rainyan Rainyan commented Jan 28, 2026

Description

Pre-allocate the CollectPlayers out vector to avoid heap reallocations from repeatedly needing to grow the vector whilst iterating the player list.

Indirectly related to #1540 which calls this utility function quite often.

Toolchain

  • Windows MSVC VS2022

Linked Issues

Avoid heap reallocations when iterating the player list
@Rainyan Rainyan requested a review from a team January 28, 2026 07:26
@sunzenshen sunzenshen requested a review from a team January 28, 2026 07:32
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