Skip to content

Explore replacing BTreeSet in IndexedMap with a sorted Vec #1992

Closed
@wpaulino

Description

@wpaulino

In #1799, we replaced the use of BTreeMaps to store the network graph with IndexedMaps, which are just a HashMap with an additional BTreeSet that keeps the keys sorted. This yielded a ~30% speed improvement (on @TheBlueMatt's Xeon W-10885M with a SK hynix Gold P31) in pathfinding across the board.

We can likely do better again by replacing the BTreeSet with a sorted Vec.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions