Skip to content

Conversation

@blankRiot96
Copy link

Hey, I was looking through the source code and happened to come across this really small efficiency improvement opportunity. Basically instead of getting the length of the iterable every iteration and subtracting one from it to get the last index, I thought it may be better to calculate it outside the for-in loop.
First time here 👀

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