3 ms·
The irony is that optimised memcpy() which is anything but REP MOVS will probably be slower on modern x86 processors. Over the years, people have come up with (
by userbinator 10y ago
The irony is that optimised memcpy() which is anything but REP MOVS will probably be slower on modern x86 processors. Over the years, people have come up with (very large) code sequences for block copying which when benchmarked in isolation can be slightly faster than the native instruction, but the increased cache usage usually makes the advantage disappear or even become a disadvantage in a real application, as now there is less other critical-path code which remains in the cache.
- coldtea 10y agoIsn't the irony that the whole idea is BS in the first place, and memcpy has absolute no effect on the sound rendering quality?
- benaadams 10y agoREP MOVS has a fixed setup cost which needs to be amortized; so its slower for small sizes that for example SIMD. Though is faster for larger sizes (> 512 - 1024 bytes?)