I need a suggestion on on how do I copy a block of memory efficiently, in single attempt if possible, in C++ or assembly language.
I have a pointer to memory location and offset. Think of a memory as a 2D array that I need to copy consisting of rows and columns.
If you need to implement such functionality yourself, I suggest you to check up Duff’s Device if it has to be done efficiently.