News for hackers. Stuff that matters.
Re:No Sane Compiler Would Optimize Atomics by aavz on Saturday May 14, 2016 @01:25PM (#11697127)
Copying short non-overlapping chunks of memory is common in a lot of workloads (think manipulation of short strings) and it does happen in tight loops where an overlap check with two additions, two comparisons and two branches is a comparable amount of work to what memcpy() does.

Why should I have to manually implement memcpy() for small sizes when I know the memory won't overlap?

There are no comments on this comment yet.