Issue
I have a function that is doing memcpy, but it’s taking up an enormous amount of cycles. Is there a faster alternative/approach than using memcpy to move a piece of memory?
Solution
memcpy
is likely to be the fastest way you can copy bytes around in memory. If you need something faster – try figuring out a way of not copying things around, e.g. swap pointers only, not the data itself.
Answered By – nos
Answer Checked By – Mildred Charles (BugsFixing Admin)