Skip to content

Use std::unordered_map instead of std::map #88

Open
@ooxi

Description

@ooxi

Especially in the lifeform lookup code an std::unordered_map could yield performance advantages. Not entirely sure whether or not being ordered is implicitly used somewhere.

Nevertheless most of the time playerId is looked up. Since it was inserted first, there could even be a performance decrease if swapping map to unordered_map.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions