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

PWR072: Suggest splitting the variable initialization #43

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

alvrogd
Copy link
Collaborator

@alvrogd alvrogd commented Oct 25, 2024

Instead of adding an explicit save attribute.

This update results from taking into account that, in most times, the save behavior is unintentional and thus a source of bugs, instead of something that programmers want to leverage in their codes.

Note that the benchmark code has not been updated. If a code is incorrect due to the implicit save behavior, and the issue is resolved by splitting the initialization, it does not make sense to compare the performance of an incorrect code vs. a correct one. In contrast, there's still value in benchmarking the particular scenario where the save behavior is desired, comparing the performance of making it explicit vs. keeping it implicit.

@alvrogd alvrogd requested a review from a team October 25, 2024 12:24
@alvrogd alvrogd self-assigned this Oct 25, 2024
@alvrogd alvrogd requested review from jgonzac and d-alonso and removed request for a team October 25, 2024 12:24
Instead of adding an explicit `save` attribute.

This update results from taking into account that, in most times, the
`save` behavior is unintentional and thus a source of bugs, instead of
something that programmers want to leverage in their codes.

Note that the benchmark code has not been updated. If a code is
incorrect due to the implicit `save` behavior, and the issue is resolved
by splitting the initialization, it does not make sense to compare the
performance of an incorrect code vs. a correct one. In contrast, there's
still value in benchmarking the particular scenario where the `save`
behavior is desired, comparing the performance of making it explicit vs.
keeping it implicit.
@alvrogd alvrogd force-pushed the feature/SwitchPWR072 branch from a8903d9 to 5158c03 Compare October 28, 2024 07:52
@alvrogd alvrogd merged commit 5158c03 into main Oct 28, 2024
4 checks passed
@alvrogd alvrogd deleted the feature/SwitchPWR072 branch October 28, 2024 07:55
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

Successfully merging this pull request may close these issues.

3 participants