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

Potential speedup for generic queries #229

Open
mlange-42 opened this issue Apr 27, 2023 · 0 comments
Open

Potential speedup for generic queries #229

mlange-42 opened this issue Apr 27, 2023 · 0 comments
Labels
performance Performance-related stuff

Comments

@mlange-42
Copy link
Owner

Generic queries could be speed up by up to approx. 20% by:

  • caching archetype column layout (updated when traversing to next archetype)
  • using different layout types for mandatory vs. optional components, to avoid nil check branching

To keep the API clean, this would probably require to merge package generic into package ecs. Otherwise, methody not relevant for the user would need to be exposed.

Not sure if a maximum of 20% speedup if worth it.

@mlange-42 mlange-42 added the performance Performance-related stuff label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance-related stuff
Projects
None yet
Development

No branches or pull requests

1 participant