4 ms·
If the data is relatively big buffers, you really do not want to copy them. Your memory bandwidth will thank you, and performance will vastly increase. Cache lo
by AstralStorm 4y ago
If the data is relatively big buffers, you really do not want to copy them. Your memory bandwidth will thank you, and performance will vastly increase.
Cache locality will be good anyway since you're referring to long blocks.
- ay 4y agoThis kind of data structure often has a buffer + associated metadata. If the metadata+pointer fits into 1-2 cache lines, storing it in a vector can give be win vs. storing the next/prev pointers next to data + metadata. In any case, there is always only one authoritative answer: “perf top”. :)