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 a range instead of an array in ForEach #153

Merged
merged 2 commits into from
Jul 2, 2020
Merged

Conversation

MaxDesiatov
Copy link
Collaborator

This a very minor optimization, it won't need to allocate an array of integers anymore in addition to already holding the array of views in memory. Also tests that the range initializer of ForEach is working properly.

This a very minor optimization, it won't need to allocate an array of integers anymore in addition to already holding the array of views in memory. Also tests that the range initializer of `ForEach` is working properly.
@MaxDesiatov MaxDesiatov added the refactor No user-visible functionality change label Jul 2, 2020
@MaxDesiatov MaxDesiatov requested review from carson-katri and j-f1 July 2, 2020 21:21
j-f1
j-f1 previously approved these changes Jul 2, 2020
@MaxDesiatov MaxDesiatov changed the title Use a range instead of an array in ForEachDemo Use a range instead of an array in ForEach Jul 2, 2020
@MaxDesiatov MaxDesiatov merged commit fda1381 into main Jul 2, 2020
@MaxDesiatov MaxDesiatov deleted the foreachdemo-nitpick branch July 2, 2020 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor No user-visible functionality change
Development

Successfully merging this pull request may close these issues.

3 participants