|
|
|
|
|
by jheriko
5023 days ago
|
|
'best defence, no be there' linked lists are seldom the right answer, contiguous blocks of memory are cache - and therefore algorithm - friendly. the stl performance is usually quite easy to beat in special cases as well (i.e. all game code). some stls are terrible as well - the ms one is riddled with locks and all sorts of sledgehammer thread safety measures, which you just don't need if you know which bits of code are threaded and which arent. |
|
A vector of pointers gives no contiguity advantage over an intrusive list during traversal (or any other operation).