Skip to content

GH-49835: [C++] A constexpr dynamic dispatch with static dispatch when possible#49840

Open
AntoinePrv wants to merge 2 commits intoapache:mainfrom
AntoinePrv:dyn-dispatch-constexpr
Open

GH-49835: [C++] A constexpr dynamic dispatch with static dispatch when possible#49840
AntoinePrv wants to merge 2 commits intoapache:mainfrom
AntoinePrv:dyn-dispatch-constexpr

Conversation

@AntoinePrv
Copy link
Copy Markdown
Contributor

@AntoinePrv AntoinePrv commented Apr 22, 2026

Rationale for this change

  • Reduce verbosity when using DynamicDispatch
  • Optimizations: when all targets can be statically dispatch, simply pick the best one at compile time, avoiding jump and CpuInfo creation.

What changes are included in this PR?

Are these changes tested?

Via existing tests

Are there any user-facing changes?

No

@AntoinePrv AntoinePrv requested a review from wgtmac as a code owner April 22, 2026 16:11
@github-actions github-actions Bot added the awaiting review Awaiting review label Apr 22, 2026
@github-actions
Copy link
Copy Markdown

⚠️ GitHub issue #49835 has been automatically assigned in GitHub to PR creator.

@AntoinePrv AntoinePrv force-pushed the dyn-dispatch-constexpr branch from d127034 to 1b04a87 Compare April 22, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant