Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate Arena Allocators for Resource/Entity storage #50

Open
finnhartshorn opened this issue Aug 25, 2024 · 0 comments
Open

Investigate Arena Allocators for Resource/Entity storage #50

finnhartshorn opened this issue Aug 25, 2024 · 0 comments

Comments

@finnhartshorn
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant