Replies: 1 comment
-
I get the same result, and it does seem unexpected. @dinord may want to take a look. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
clang 19, O3, libc++-19 abi v2, everything else is almost trunk (benchmark was extended to other function implementations)
I interested why
absl::AnyInvokable
noticeably slower in case of function pointerMaybe because of more expensive construction?
Because call-path looks even better except
std::launder
.Also I didn't understand why does
std::launder
required forabseil
implementation and doesn't forstd
andfolly
?It doesn't affect microbenchmark
abseil-cpp/absl/functional/internal/any_invocable.h
Line 184 in 35211d9
https://github.com/llvm/llvm-project/blob/6d93280aabc2fd132f54e5aa615d25abeadabe7b/libcxx/include/__functional/function.h#L615
https://github.com/facebook/folly/blob/e3795d7e2069aee76bc9291b7746a116ebf5be58/folly/Function.h#L339
Beta Was this translation helpful? Give feedback.
All reactions