Skip to content

Why are you using a hashmap ? #6

Description

@LucaCoduriV

Hello, I was looking your code to learn how a Quadtree could be implemented in rust (I never did it before in any other language too).
But I was wondering why are you using a hashmap for your store ? Wouldn't it be faster with an array ? So your handle would just be a index of you array ? I mean getting a value in a hashmap is O(1) but it's still slower than getting a value in an array.

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