Re:Memcpy vs. memmove
by stephencanon on Tuesday December 02, 2014 @09:46AM
(#8687311)
Depends on whose libc you're using. Good implementations definitely take advantage of rep movsb where it's fast.
I guess the libc that comes with Ubuntu doesn't count as a good implementation.
Re:Memcpy vs. memmove
by stephencanon on Tuesday December 02, 2014 @12:09PM
(#8688181)
glibc is generally pretty good, but does lag commercial libc implementations somewhat when it comes to microarchitectural optimization. It's also not unheard of for Linux distros to include rather old versions of glibc. I have no idea if that's the problem in your case, but it's worth checking that you have the latest.
Apparently, libc hasn't caught up to those micro-architecture changes yet :/