-
Notifications
You must be signed in to change notification settings - Fork 450
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
large FlxGroup changes #2806
large FlxGroup changes #2806
Conversation
I always thought the old group loop method were to reduce memory allocation or cpu cycles |
I'm pretty sure its a remnant from the flash days, declaring loop vars outside of the loop was very common in flash. either way, if there were benefits, they're likely insignificant and not worth the lack of readibility, but I'll see if i can back up that claim |
I could be wrong, but iirc i also saw the old method being done in javascript projects. |
for loops are converted to while loops for javascript, anyway. https://try.haxe.org/#8F85C046 |
killMembers
andreviveMembers
andkeyValueIterator
getFirst
,getLast
,getFirstIndex
,getLastIndex
,any
andevery
getFirst
for all other, similar search utilsgetFirstNull
's loop with a simple indexOf check