This 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”. :)
In any case, there is always only one authoritative answer: “perf top”. :)