C considered dangerous
C considered dangerous
Posted Sep 4, 2018 6:46 UTC (Tue) by quotemstr (subscriber, #45331)In reply to: C considered dangerous by ncm
Parent article: C considered dangerous
That's absurd nonsense. You must be talking about different implementations of memcpy and memmove. so it's not an apples-to-apples comparison. You can always implement memcpy by taking memmove and baking in the memory-direction branches, which means that no matter how efficient your memmove, you can generate an even _more_ efficient memcpy out of it.
I can imagine memmove and memcpy being equally fast, but memmove being faster, by doing more work? Something is clearly wrong with the comparison.