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

perf(motion_velocity_smoother): remove some heavy debug logging #8798

Merged

remove some heavy logging in the velocity smoother

78d6669
Select commit
Loading
Failed to load commit list.
Merged

perf(motion_velocity_smoother): remove some heavy debug logging #8798

remove some heavy logging in the velocity smoother
78d6669
Select commit
Loading
Failed to load commit list.
CodeScene Delta Analysis / CodeScene Cloud Delta Analysis (main) succeeded Sep 13, 2024 in 53s

CodeScene PR Check

Code Health Quality Gates: OK

Change in average Code Health of affected files: +0.02 (5.96 -> 5.98)

  • Improving Code Health: 2 findings(s) ✅

View detailed results in CodeScene

Details

✅ Improving Code Health:

  • Complex Method velocity_planning_utils.cpp: calcStopVelocityWithConstantJerkAccLimit
  • Overall Code Complexity velocity_planning_utils.cpp

Annotations

Check notice on line 251 in planning/autoware_velocity_smoother/src/smoother/analytical_jerk_constrained_smoother/velocity_planning_utils.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

✅ Getting better: Complex Method

calcStopVelocityWithConstantJerkAccLimit decreases in cyclomatic complexity from 26 to 25, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.

Check notice on line 1 in planning/autoware_velocity_smoother/src/smoother/analytical_jerk_constrained_smoother/velocity_planning_utils.cpp

See this annotation in the file changed.

@codescene-delta-analysis codescene-delta-analysis / CodeScene Cloud Delta Analysis (main)

✅ Getting better: Overall Code Complexity

The mean cyclomatic complexity decreases from 9.14 to 9.00, threshold = 4. This file has many conditional statements (e.g. if, for, while) across its implementation, leading to lower code health. Avoid adding more conditionals.