-
Couldn't load subscription status.
- Fork 475
Open
Labels
enhancementNew feature or requestNew feature or request
Description
While profiling a big application of mine, made by static composition of 20+ nodes in the same executable, enabling use_sim_time makes 20+ threads spawn, each one with a clock subscriber.
rclcpp/rclcpp/src/rclcpp/time_source.cpp
Lines 396 to 402 in 9b65494
| clock_executor_thread_ = std::thread( | |
| [this]() { | |
| auto future = cancel_clock_executor_promise_.get_future(); | |
| clock_executor_->add_callback_group(clock_callback_group_, node_base_); | |
| clock_executor_->spin_until_future_complete(future); | |
| } | |
| ); |
Why wouldn't be possible to share among all nodes the clock subscription / the time source? This would bring down the count of clock subscriber threads to just one.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request