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

Avoid allocations for queries #10

Closed
Avokadoen opened this issue Jul 10, 2022 · 2 comments
Closed

Avoid allocations for queries #10

Avokadoen opened this issue Jul 10, 2022 · 2 comments

Comments

@Avokadoen
Copy link
Owner

Find an ergonomic way of avoiding allocations when requesting an archetype

@Avokadoen
Copy link
Owner Author

after working on issue #27 for sometime it is obvious that the path to avoid allocation when querying is to always accept an array of the length equal to the length of all components registered to a a world instance on compile time.

We can avoid allocation in runtime query by using said array and only allocate when initializing new archetypes

@Avokadoen
Copy link
Owner Author

#30 resolve this issue

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