Live data from Hacker News

Standard glibc memcpy() vs. RISC-V Vector extension version on the Allwinner D1

hoult.org

1–4 of 4 posts

Re: Standard glibc memcpy() vs. RISC-V Vector extension version on the Allwinner D1

#4

That's a pretty nice 3x speedup at 128 byte copy size. Remarkable that the execution time is absolutely identical for anything from 0 to 128 bytes. And the code is 1/24th the size.

I've reduced the time for lengths from 0 to 64 bytes from 46.8 ns to 30.9 ns without adversely affecting longer lengths. I also knocked 2 bytes off the code size, from 26 to 24 bytes.