News for hackers. Stuff that matters.
Re:Improved audio rendering with an optimised version of mem... by userbinator on Saturday April 22, 2017 @12:00PM (#14173115)
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.
Re:Improved audio rendering with an optimised version of mem... by coldtea on Saturday April 22, 2017 @12:13PM (#14173166)
Isn't the irony that the whole idea is BS in the first place, and memcpy has absolute no effect on the sound rendering quality?
Re:Improved audio rendering with an optimised version of mem... by benaadams on Saturday April 22, 2017 @01:19PM (#14173539)
REP 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?)