memmove faster than memcpy for small N
memmove faster than memcpy for small N
Posted Sep 6, 2018 6:55 UTC (Thu) by liw (subscriber, #6379)In reply to: memmove faster than memcpy for small N by jreiser
Parent article: C considered dangerous
I think both sides need to provide code and benchmarks to settle this question. Hypotheticals and claims based on mental models only go far. Even arguing based on code is insuffident, given how complex an issue performance analysis can be.
I tried writing a benchmark. GCC optimised it away.
