Skip to content

Investigate Arena Allocators for Resource/Entity storage #50

Description

@finnhartshorn

Currently resources are stored in a hashmap which is likely quite slow to iterate through. We should investigate Arena Allocators as an alternative to ECS (unsure if they could be used together). Arena Allocators would allow better iteration through entities/resources whilst still providing stable pointers (having them in all in a vec would mean the pointers move whenever the vec grows). Will need to do some memory profiling to figure out how/if we need to segment the resources/entities.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions