Skip to content

Prefer vector over linked lists like data structs. #24

@shahzadlone

Description

@shahzadlone

std::map, std::unordered_map, std::array and etc. are all under the hood using linked list, this slows does the program quite a lot.

Here is a beautiful video that talks about these in more depths!
https://www.youtube.com/watch?v=fHNmRkzxHWs&t=41m41s

Bonus: Even Bjarne Stroustrup recommends to only use vectors :).

Chances are we can make a better data structure (class) than the old linked list implementations of standard lib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C++98Changes that should go first in the patch series.patchIntended to be part of the patch series that makes up splinter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions