-
Notifications
You must be signed in to change notification settings - Fork 368
Fix joint_state_broadcaster performance issues #1640
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 joint_state_broadcaster performance issues #1640
Conversation
1441c24
to
69cbe88
Compare
Performance of the current
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1640 +/- ##
=======================================
Coverage 85.19% 85.19%
=======================================
Files 126 127 +1
Lines 11916 12006 +90
Branches 997 1010 +13
=======================================
+ Hits 10152 10229 +77
- Misses 1452 1460 +8
- Partials 312 317 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Performance after latest commits.
|
Performance after latest commits.
|
- Includes a huge number (>550) of state interfaces - At the prints the average update time and variance
get_optional() is also more performant
3ba6ec5
to
262a229
Compare
Thank you for all the effort on this, the performance improvement is already superb but I'm also very happy about that massive reduction in variance. |
My pleasure man. This is actually a nice break from the routine. :D Performance after latest commits.
|
Performance after latest commits. This is the final fix.
|
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.
The changes look really good to me. Thank you for the initiative :)
Just minor things
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.
Looks great, and also tested in my setup
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.
Great job. Thank you so much!
LGTM
This PR will include adding a new test for checking performance in a setup with lots of state interfaces (>500). I'll include here the results of each incremental performance fix commit added.
Since we have also noticed a lot of variance in the results, we'll run it a few times. All results will be summarized here.
Fixes #1409.