4 ms·
dlemire, you note that the read ”overflows”. Why can’t you copy just `len` bytes? Does it slow too much because of the branch/more load/store operations?
by nvartolomei 3y ago
dlemire, you note that the read ”overflows”. Why can’t you copy just `len` bytes? Does it slow too much because of the branch/more load/store operations?
- xoranth 3y agoIt is slower since it actually calls `memcpy`, instead of doing a single load. E.g. https://godbolt.org/z/5xa33qbar https://godbolt.org/z/5xa33qbar