llvm / llvm/llvm-project

[libc++] Check if we can use ifunc to resolve operator new[] & friends at link-time

Open
#218,930 0 comments 0 reactions 1 assignee Claimed by @philnik777 View on GitHub
libc++ performance
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Right now, `operator new[]` & friends often turn around and call `operator new`. If we could resolve at link-time whether the operators have been overridden, we could potentially use resolver functions to have `operator new[]` resolve to `operator new` directly, removing an indirection / jump.

Since this is really hot code, it might be worth it. Idea by @philnik777 .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.