Tough Times on the Road to StarCraft
What's the point of using linked lists ? Low memory ? I'll never understand why the usage of linked lists is so common.I mean you don't have fast random access with linked list, aren't hash maps just better for fast insertion/deletion ? Object pools are also pretty great too.I'll never forget the day a classmate in some game programming school argued that linked list were like vectors (std::vector).Linked lists only seems viable for insertions, they're not viable for fast deletion since you need to search for the pointer first. Maybe you need to index linked lists instead, but since the heap already allows itself to be fragmented like a linked list can, wouldn't it be better to just use vectors as often as possible so it can be more cache friendly ?