News for hackers. Stuff that matters.
Re:Fast memcpy, A System Design by 323 on Monday December 19, 2022 @07:12PM (#34059755)
So does that mean that further major optimizations are basically impossible?

You don't always need the operation finished right away. Maybe REP MOVS could return a sort of a handle that you then wait for when you actually need to use the destination, and the CPU can keep chugging along in the background. Like when you submit commands to the GPU or how you can wait at memory fences for other threads in a warp to complete.

Re:Fast memcpy, A System Design by __init on Monday December 19, 2022 @07:24PM (#34059852)
Further optimization are certainly possible, especially as the hardware improves and gains additional capabilities. With regards to your suggestion, this is essentially what already happens, thanks to the magic of out-of-order cores.
Re:Fast memcpy, A System Design by meindnoch on Monday December 19, 2022 @07:56PM (#34060111)