Date: Fri, 8 Aug 2025 14:31:27 +0200
> On 7 Aug 2025, at 23:25, Oliver Hunt <oliver_at_[hidden]> wrote:
>
> You are making the claim that std::span introduces overhead that is not present if the API uses raw pointers.
>
> I just provided you an example showing that the code generation is _identical_.
There is 9–10% overhead with std::span relative to using clang O3 in some 10 million random division runs of the function “div32” calling the “div” function I mentioned. Somewhat less with g++ O3, but it has somewhat worse absolute timings on the “without” variation.
>
> You are making the claim that std::span introduces overhead that is not present if the API uses raw pointers.
>
> I just provided you an example showing that the code generation is _identical_.
There is 9–10% overhead with std::span relative to using clang O3 in some 10 million random division runs of the function “div32” calling the “div” function I mentioned. Somewhat less with g++ O3, but it has somewhat worse absolute timings on the “without” variation.
Received on 2025-08-08 12:31:45