4 ms·
Storing pointers unaligned and using memcpy to extract them to an aligned pointer, can be a performance gain, if it means less padding taking up valuable cache
by quelsolaar 3y ago
Storing pointers unaligned and using memcpy to extract them to an aligned pointer, can be a performance gain, if it means less padding taking up valuable cache space.
- DougMerritt 3y agoIn the right circumstances, you're very right -- but most people will get some aspect of this wrong.