memmove faster than memcpy for small N
memmove faster than memcpy for small N
Posted Sep 5, 2018 23:03 UTC (Wed) by jreiser (subscriber, #11027)In reply to: C considered dangerous by quotemstr
Parent article: C considered dangerous
Posted Sep 5, 2018 23:45 UTC (Wed)
by quotemstr (subscriber, #45331)
[Link] (3 responses)
Posted Sep 6, 2018 3:42 UTC (Thu)
by jreiser (subscriber, #11027)
[Link] (2 responses)
Posted Sep 6, 2018 6:55 UTC (Thu)
by liw (subscriber, #6379)
[Link]
I tried writing a benchmark. GCC optimised it away.
Posted Sep 6, 2018 7:14 UTC (Thu)
by quotemstr (subscriber, #45331)
[Link]
memmove faster than memcpy for small N
memmove faster than memcpy for small N
memmove faster than memcpy for small N
memmove faster than memcpy for small N
