Hacker News new | past | comments | ask | show | jobs | submit login

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”. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: