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

Parallel sections can be improved once RFC 2229 is resolved #36

Open
fmckeogh opened this issue May 27, 2020 · 0 comments
Open

Parallel sections can be improved once RFC 2229 is resolved #36

fmckeogh opened this issue May 27, 2020 · 0 comments

Comments

@fmckeogh
Copy link
Collaborator

Tracking issue: rust-lang/rust#53488

"Closures will capture individual fields and not the whole struct when possible"

This prevents taking a mutable/immutable reference to any other field of State when an array is being used in a parallel section. This is resolved by either creating temporary variables and assigning to the fields after the closure has completed, or by not parallelising at all. Once this issue is closed however these sections can be improved.

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

1 participant