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

[jazzy] Performance improvements in Rosbag2 recorder discovery (backport #1825) #1827

Open
wants to merge 1 commit into
base: jazzy
Choose a base branch
from

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Oct 3, 2024

  • This PR improves the performance of the Rosbag2 recorder discovery by moving graph checks such as topic_is_unpublished(topic_name, *node_graph_)) and is_leaf_topic(topic_name, *node_graph_)), which are expensive to the end of the checklist.

  • This PR is similar to the fix from 51a83f4 which was discussed in CPU overhead when discovery is used #1485. This gives a massive CPU improvement.

  • In the screenshot below you can see the performance difference:

Screenshot from 2024-09-27 15-22-25


This is an automatic backport of pull request #1825 done by [Mergify](https://mergify.com).

…#1825)

Reintroduce the fix from 51a83f4 which
was discussed in #1485. This gives
a massive CPU improvement.

Signed-off-by: Ramon Wijnands <[email protected]>
(cherry picked from commit e75d6d6)
@mergify mergify bot requested a review from a team as a code owner October 3, 2024 17:42
@mergify mergify bot requested review from emersonknapp and jhdcs and removed request for a team October 3, 2024 17:42
@MichaelOrlov MichaelOrlov changed the title Performance improvements in Rosbag2 recorder discovery (backport #1825) [jazzy] Performance improvements in Rosbag2 recorder discovery (backport #1825) Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants