3 ms·
Not memmove. A trivial object assignment can be _memcpy_aligned, which is much faster. And the size is compile-time constant.
by rurban 7y ago
Not memmove.
A trivial object assignment can be _memcpy_aligned, which is much faster. And the size is compile-time constant.
- lenkite 7y agoI assume you mean aligned on boundaries ? I picked up that from https://en.cppreference.com/w/cpp/language/copy_assignment 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.