Skip to content

Use extern in display templates - #1827

Open
ahcorde wants to merge 2 commits into
rollingfrom
ahcorde/rolling/extern_template_display
Open

Use extern in display templates#1827
ahcorde wants to merge 2 commits into
rollingfrom
ahcorde/rolling/extern_template_display

Conversation

@ahcorde

@ahcorde ahcorde commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Description

Declare the display base class templates (MessageFilterDisplay/RosTopicDisplay) as extern template in the 24 display headers and explicitly instantiate them once per library.

This cut display TU compile times by up to 52% and clean library builds by ~7 s.

Did you use Generative AI?

Claude Opus 4.7

Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
@ahcorde ahcorde self-assigned this Jul 24, 2026
@ahcorde
ahcorde requested review from asymingt and mjcarroll July 24, 2026 10:17
@mergify

mergify Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Signed-off-by: Alejandro Hernandez Cordero <ahcorde@gmail.com>
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.

1 participant