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

Improve performance for ROS_DISABLE_LOANED_MESSAGES #977

Closed
fujitatomoya opened this issue Apr 11, 2022 · 0 comments
Closed

Improve performance for ROS_DISABLE_LOANED_MESSAGES #977

fujitatomoya opened this issue Apr 11, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@fujitatomoya
Copy link
Collaborator

fujitatomoya commented Apr 11, 2022

Description

originally this came up with ros2/rosbag2#981 (comment)

reading environmental variable every single time to publish the data is not cost effective for performance.

Implementation considerations

  • extend rcl_publisher_t and rcl_subscription_t to cache the force flag to disable LoanedMessages.
  • read environmental variable just once for corresponding publisher or subscription construction in rcl.
  • return false immediately in rcl_publisher_can_loan_messages and rcl_subscription_can_loan_messages.

Related Issues / PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant