-
Notifications
You must be signed in to change notification settings - Fork 140
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
Prevent container mutation while iterating #3126
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:master commit a9778bd Collapsed results for better readability
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3126 +/- ##
==========================================
- Coverage 80.67% 80.62% -0.05%
==========================================
Files 379 380 +1
Lines 91523 92053 +530
==========================================
+ Hits 73834 74218 +384
- Misses 15047 15160 +113
- Partials 2642 2675 +33
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To check my understanding, this just extends the existing logic for resource containers to struct containers as well?
Yes, precisely. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Changes look good, mostly just concerned about impact on "unrelated" code
As discussed maybe make the transfer in the iteration function optional, and only use it for the for-loop to begin with. |
Made the transfer optional and only enabled it for the |
797b125
to
2354104
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Closes #2961
Description
NOTE:
locationRange
for functions where necessary. I've annotated the important changes that is being added as the main objective of this PR.master
branchFiles changed
in the Github PR explorer