Skip to content

Avoid unecessary creation of MultiThreadedExecutor (backport #3090)#3096

Merged
ahcorde merged 1 commit intohumblefrom
mergify/bp/humble/pr-3090
Mar 13, 2026
Merged

Avoid unecessary creation of MultiThreadedExecutor (backport #3090)#3096
ahcorde merged 1 commit intohumblefrom
mergify/bp/humble/pr-3090

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Mar 12, 2026

Description

Avoids the unecessary creation of a MultiThreadedExecutor in the component_container_mt node.

The overhead of creating an unecessary MultiThreadedExecutor here is quite minimal, but there is some amount of overhead due to Executor's constructor.
I just noticed this and thought I'd contribute this, even though quite minor.

Also, I added const to node, as afaik there's no reason not to here.

Is this user-facing behavior change?

No.

Did you use Generative AI?

No. I don't use slop bots.


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

Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
(cherry picked from commit 8cd4d47)
@fujitatomoya
Copy link
Collaborator

fujitatomoya commented Mar 12, 2026

Pulls: #3096
Gist: https://gist.githubusercontent.com/fujitatomoya/df9225e051779dee9c539b50c01605c6/raw/39e1b6aaf70a6d9400ebb6c96d75e559352a0e79/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp_components
TEST args: --packages-above rclcpp_components
ROS Distro: humble
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18456

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

@ahcorde ahcorde merged commit 3a053fb into humble Mar 13, 2026
3 checks passed
@ahcorde ahcorde deleted the mergify/bp/humble/pr-3090 branch March 13, 2026 11:58
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.

3 participants