-
Notifications
You must be signed in to change notification settings - Fork 682
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
fix(distortion_correction_node): remove redundant code #6758
Conversation
Thank you for the PR 🙏 @yukkysaito My understanding is that this modification does not change any performance, simply increasing the readability of the code by removing "purely" redundant code, given that the following @vividf Would you confirm if the above argument is correct? |
@kminoda @yukkysaito Below is the value of the above graph (100 samples) Original The value average processing time is lower because the current implementation still uses the for-loop. By removing the for-loop and using the while loop that the author implemented it will decrease the time. |
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.
LGTM
@vividf could you resolve conflict? |
Due to the approval being late, another PR (#6843) also solved this. |
Description
There is a for-loop and a while loop doing the same thing. Basically, when implementing the while loop, the contributor forgot to delete it.
https://github.com/autowarefoundation/autoware.universe/pull/2913/files
Tests performed
Not applicable.
Effects on system behavior
Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.