Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not memmove. A trivial object assignment can be _memcpy_aligned, which is much faster. And the size is compile-time constant.


I assume you mean aligned on boundaries ? I picked up that from https://en.cppreference.com/w/cpp/language/copy_assignment and it does also say that memmove has a fallback to std::memcp when there is no overlap between source and destination.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: