Skip to content

Try to replace std::vector with std::list for faster node reduction #7

@phobos2077

Description

@phobos2077

Due to how BuildTreeBranch works, it does lots of erasures of the nodelist. Because it does so going from the beginning of the list and if the procedure is relatively large, it becomes almost a worst case scenario where hundreds of nodes are being copy-constructed (when shifting after erase) over and over as we progress from the first opcode to the last.

Better to use a linked list to reduce erase complexity. Should increase performance quite a lot.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions