[libcxx-commits] [libcxx] [libc++] Mark __{emplace, push}_back_slow_path as noinline (PR #94379)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 5 21:08:23 PDT 2024
gerben-stavenga wrote:
I did some code archeology, I see
https://github.com/llvm/llvm-project/commit/6fe4e033f07d332980e1997c19fe705cff9d07a4
already introduced some of the optimizations i did at google on protobuf repeatedfield. I was investigating an older version of libc++ that we are using which misses this. Basically what I'm saying is that returning capacity as well and making sure that fallback functions are static so that this pointer never escapes, we can get basically perfect fast path code without having to do excessive inlining.
https://github.com/llvm/llvm-project/pull/94379
More information about the libcxx-commits
mailing list