-
Notifications
You must be signed in to change notification settings - Fork 58
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
refact: improve handling of arrays #1079
Conversation
@rubenporras I did not want to name the empty arrays as verbose as |
I think that if you know that it is beneficial to reuse empty arrays to reduce creation/garbage collection, all names are fine, and otherwise you will not understand it. What about choosing the names you like and commenting the class |
a0320af
to
c419c2c
Compare
...with the goal to increase readability and improve performance
This PR improves working with arrays, by avoiding unnecessary temporary array allocations and providing specialized functions for filtering/iterating arrays which improves readability and avoids duplicate code.