-
Notifications
You must be signed in to change notification settings - Fork 646
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
perf(autoware_map_based_prediction): enhance speed by removing unnecessary calculation #8471
perf(autoware_map_based_prediction): enhance speed by removing unnecessary calculation #8471
Conversation
…d of external_surrounding_crosswalks Signed-off-by: Y.Hisaki <[email protected]>
…ssary calculation Signed-off-by: Y.Hisaki <[email protected]>
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8471 +/- ##
=======================================
Coverage 23.89% 23.89%
=======================================
Files 1380 1382 +2
Lines 101829 101810 -19
Branches 38779 38775 -4
=======================================
- Hits 24333 24329 -4
+ Misses 75033 74993 -40
- Partials 2463 2488 +25
*This pull request uses carry forward flags. 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.
LGTM
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
…nnecessary-process-in-map_based_prediction Signed-off-by: Y.Hisaki <[email protected]>
Signed-off-by: Y.Hisaki <[email protected]>
…ssary calculation (autowarefoundation#8471) * fix(autoware_map_based_prediction): use surrounding_crosswalks instead of external_surrounding_crosswalks Signed-off-by: Y.Hisaki <[email protected]> * perf(autoware_map_based_prediction): enhance speed by removing unnecessary calculation Signed-off-by: Y.Hisaki <[email protected]> --------- Signed-off-by: Y.Hisaki <[email protected]>
…ssary calculation (#1469) perf(autoware_map_based_prediction): enhance speed by removing unnecessary calculation (autowarefoundation#8471) * fix(autoware_map_based_prediction): use surrounding_crosswalks instead of external_surrounding_crosswalks * perf(autoware_map_based_prediction): enhance speed by removing unnecessary calculation --------- Signed-off-by: Y.Hisaki <[email protected]> Co-authored-by: Yukinari Hisaki <[email protected]>
…ssary calculation (autowarefoundation#8471) * fix(autoware_map_based_prediction): use surrounding_crosswalks instead of external_surrounding_crosswalks Signed-off-by: Y.Hisaki <[email protected]> * perf(autoware_map_based_prediction): enhance speed by removing unnecessary calculation Signed-off-by: Y.Hisaki <[email protected]> --------- Signed-off-by: Y.Hisaki <[email protected]> Signed-off-by: xtk8532704 <[email protected]>
Description
Multiple places were found where
boost::geometry::within(...)
was used immediately afterauto [dist, lanelet] = lanelet::geometry::findNearest(...)
(especially in places usingwithinLanelet
). However, sincedist
being 0 andboost::geometry::within(...)
returning true are equivalent, the redundant processing was eliminated.https://wandbox.org/permlink/u3KhRExZACGjSf5Z
This change slightly improves performance.
before
after
Related links
Parent Issue:
How was this PR tested?
https://evaluation.tier4.jp/evaluation/reports/995d3b8a-1cf9-55a8-97f4-db6152dd8896?project_id=prd_jt
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.