-
Notifications
You must be signed in to change notification settings - Fork 17
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
Optimize likelihood field model runtime performance #199
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
@glpuga Nice!
nahueespinosa
changed the title
Micro-optimizations on the Likelihood Sensor model runtime performance
Optimize likelihood field model runtime performance
May 26, 2023
glpuga
commented
May 26, 2023
glpuga
force-pushed
the
glpuga/test_micro_optimizations
branch
4 times, most recently
from
May 26, 2023 18:22
581a209
to
0f20b5c
Compare
glpuga
commented
May 26, 2023
glpuga
commented
May 26, 2023
hidmic
reviewed
May 26, 2023
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!
glpuga
force-pushed
the
glpuga/test_micro_optimizations
branch
from
May 27, 2023 01:18
33c06a8
to
5ea065b
Compare
hidmic
approved these changes
May 27, 2023
7 tasks
ivanpauno
reviewed
May 29, 2023
glpuga
force-pushed
the
glpuga/test_micro_optimizations
branch
from
May 30, 2023 00:17
08fd84c
to
ea65cdb
Compare
Signed-off-by: Gerardo Puga <glpuga@ekumenlabs.com>
glpuga
force-pushed
the
glpuga/test_micro_optimizations
branch
from
May 30, 2023 00:45
ea65cdb
to
2cd18a3
Compare
7 tasks
glpuga
added a commit
that referenced
this pull request
Jun 4, 2023
Adds an updated report including the following changes from the last: - Includes the changes merged in #195 #199 #200 #207 - Measured using the 1x replay speed to prevent distortions to the CPU results - Fixes typos in configuration files, found during review Signed-off-by: Gerardo Puga <glpuga@ekumenlabs.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed changes
A number of optimizations to functions in the tightest loops of the Likelihood Sensor model.
Type of change
Checklist
Additional comments
This is working draft. The pre-cubing of the likelihood values broke tests, I haven't yet spent time fixing them.
Results
All performance evaluations were performed on a
Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
.Comparison of pre and post optimization performance
Pre-optimization flamegraph:
Post-optimization flamegraph:
Optimized code vs. Nav2 AMCL
All three (Beluga multi-threaded, Beluga single-threaded and Nav2 AMCL):
Closer detail of Beluga single-threaded vs. Nav2 AMCL: