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

Use player.Iterator() instead of player.GetAll() for optimization #11

Closed
wants to merge 1 commit into from

Conversation

Winkarst-cpu
Copy link

player.Iterator() works faster than ipairs(player.GetAll()).

https://wiki.facepunch.com/gmod/player.Iterator

@FPtje
Copy link
Collaborator

FPtje commented Jan 7, 2025

Thanks for the PR! Sadly the iterator do not always work as intended, and therefore should not be used at all. See the discussion here:

FPtje/DarkRP#3255

@FPtje FPtje closed this Jan 7, 2025
@Winkarst-cpu Winkarst-cpu deleted the iterator branch January 7, 2025 18:49
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