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

Using List.iter causes a function allocation #8184

Closed
TIHan opened this issue Jan 13, 2020 · 0 comments
Closed

Using List.iter causes a function allocation #8184

TIHan opened this issue Jan 13, 2020 · 0 comments
Milestone

Comments

@TIHan
Copy link
Contributor

TIHan commented Jan 13, 2020

Using List.iter is idiomatic when iterating through a list, but it causes a function allocation. Because of this, in certain instances, we have to resort to using for..in..do for iteration on a list to prevent a function allocation; we did that in this PR: #8175

Ideally, we should not have to change such idiomatic code to prevent allocations. This issue is to track that.

Here is the WIP PR to resolve this issue: #8176

@cartermp cartermp added this to the Unknown / not bug milestone Jan 13, 2020
@cartermp cartermp modified the milestones: Unknown / not bug, 16.6 Mar 16, 2020
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

No branches or pull requests

2 participants