Skip to content

Provide size hint information about the contents of Queries #3342

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

Closed
alice-i-cecile opened this issue Dec 15, 2021 · 1 comment
Closed

Provide size hint information about the contents of Queries #3342

alice-i-cecile opened this issue Dec 15, 2021 · 1 comment
Labels
A-ECS Entities, components, systems, and events C-Performance A change motivated by improving speed, memory usage or compile times

Comments

@alice-i-cecile
Copy link
Member

Probably as a method on the Fetch trait. Sum the lower and upper bounds of the constituent types to create a new bound.

Would be useful to properly pre-allocate data storage for get_multiple_mut, introduced in #3333.

@alice-i-cecile alice-i-cecile added A-ECS Entities, components, systems, and events C-Performance A change motivated by improving speed, memory usage or compile times labels Dec 15, 2021
@alice-i-cecile
Copy link
Member Author

This doesn't seem to be needed; #3333 found a workaround so I expect other cases will be able to as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events C-Performance A change motivated by improving speed, memory usage or compile times
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant