News for hackers. Stuff that matters.
Re:A 100LOC C impl of memset, that is faster than glibc's by stephc_int13 on Friday November 12, 2021 @09:09AM (#29199375)
From my experience, good prefetching and pre-alignment changes a lot of things/

Compiler optimized memcpy are good for small copies that will be inlined, but copying big chunks is an other story and I've seen non-marginal differences depending on implementation.

The most difficult problem is that each implementation is usually tuned for a specific CPU and might be sub-optimal with a different brand or revision...

There are no comments on this comment yet.