> On 7 Aug 2025, at 23:25, Oliver Hunt <oliver@apple.com> 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.
--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals