Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rurban
on Aug 21, 2019
|
parent
|
context
|
favorite
| on:
Bulk Data Structures C++
Not memmove. A trivial object assignment can be _memcpy_aligned, which is much faster. And the size is compile-time constant.
lenkite
on Aug 21, 2019
[–]
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: