Skip to content

What is complexity of iteration over indexmap? #227

Closed
@AngelicosPhosphoros

Description

@AngelicosPhosphoros

I recently discovered that std::collections::HashMap iterator iterates over all items in map for O(capacity), not O(length).
Indexmap probably can have iteration for O(length) using index based access. What is current complexity?

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