llvm / llvm/llvm-project

[libc++abi] Look into optimizing dynamic_cast (DAG rightmost) benchmark

Open
#205,835 0 comments 0 reactions 0 assignees View on GitHub
libc++ libc++abi performance
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

The `dynamic_cast (DAG rightmost)` benchmark runs much slower against libc++ than against libstdc++, which means there is room for improvement. While we discourage the use of `dynamic_cast` in performance-sensitive code paths, in practice it still gets used a lot, so having a performant implementation is worth it.

Contributor guide

Open the contributing guide

Research direction

The issue identifies the `dynamic_cast (DAG rightmost)` benchmark but no source file or test. Start by locating and running that benchmark, then compare libc++abi results with libstdc++; done means achieving a measured performance improvement.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.