faster alternative to memcpy?

后端 未结 16 1142
一生所求
一生所求 2020-11-29 21:27

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?

16条回答
  •  时光取名叫无心
    2020-11-29 21:48

    It's generally faster not to make a copy at all. Whether you can adapt your function to not copy I don't know but it's worth looking in to.

提交回复
热议问题