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

Avoid dynamic allocation of message before sending over rosout #1067

Merged
merged 1 commit into from
May 12, 2023

Conversation

cwecht
Copy link
Contributor

@cwecht cwecht commented May 8, 2023

This PR provides an approach for filling the messages send over rosout without involving additional heap allocations. I might miss something here, but for me this approach seems more reasonable - at least regard performance.

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is unhappy about a few stylistic things in here. Once that is fixed, we can do a full review.

Signed-off-by: Christopher Wecht <cwecht@mailbox.org>
@cwecht
Copy link
Contributor Author

cwecht commented May 9, 2023

CI is unhappy about a few stylistic things in here. Once that is fixed, we can do a full review.

Done: cpplint and uncrustify are happy now.

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me, and should avoid some allocations/copies. Thanks!

@clalancette
Copy link
Contributor

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@clalancette clalancette merged commit c0bf923 into ros2:rolling May 12, 2023
Acuadros95 pushed a commit to micro-ROS/rcl that referenced this pull request Jun 6, 2023
…1067)

Signed-off-by: Christopher Wecht <cwecht@mailbox.org>
Acuadros95 pushed a commit to micro-ROS/rcl that referenced this pull request Jun 6, 2023
…1067)

Signed-off-by: Christopher Wecht <cwecht@mailbox.org>
danthony06 pushed a commit to danthony06/rcl that referenced this pull request Jun 14, 2023
…1067)

Signed-off-by: Christopher Wecht <cwecht@mailbox.org>
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