News for hackers. Stuff that matters.
Re:Memcpy vs. memmove by akira2501 on Monday December 01, 2014 @08:08PM (#8685124)
> You probably know this, but repne movsb is actually a fairly slow approach to copying data compared to the various SSE assembly implementations that libc and friends have.

That used to be the case. As is mentioned, modern processors have fixed the 'rep' prefix to be much faster. Under linux, if your /proc/cpuinfo shows 'rep_good' in the flags section, then your CPU is of this newer class.

Re:Memcpy vs. memmove by stephencanon on Tuesday December 02, 2014 @09:51AM (#8687332)
Just to be perfectly precise, not all uses of the rep prefix are fast now. Only rep movs and rep stos are improved, IIRC.