Skip to content

Remove FetchState#4802

Closed
james7132 wants to merge 14 commits intobevyengine:mainfrom
james7132:yeet-fetch-state
Closed

Remove FetchState#4802
james7132 wants to merge 14 commits intobevyengine:mainfrom
james7132:yeet-fetch-state

Conversation

@james7132
Copy link
Member

Objective

FetchState adds a bit of additional type/trait impl bloat. Slim down ECS's compilation by moving the implementation to Fetch instead.

Solution

Move the implementations onto their associated Fetch instead, remove the old implementations.

I tried putting this on WorldQuery instead, but it snagged on some of the Fetch impls for some of the filters.


Changelog

TODO

Migration Guide

TODO

@james7132 james7132 added A-ECS Entities, components, systems, and events C-Code-Quality A section of code that is hard to understand or change labels May 19, 2022
@james7132 james7132 changed the title Yeet fetch state Remove FetchState May 19, 2022
@james7132
Copy link
Member Author

This is basically ready, but #4807 should probably be merged first.

@james7132 james7132 requested a review from BoxyUwU May 22, 2022 09:40
@james7132 james7132 marked this pull request as ready for review May 31, 2022 07:32
@james7132
Copy link
Member Author

#4807 has been checked in. Taking this out of draft.

@james7132 james7132 requested a review from BoxyUwU June 1, 2022 12:02
@james7132
Copy link
Member Author

james7132 commented Jul 6, 2022

This has been superseded by #5205, which does this and further collapses the WorldQuery trait hierarchy.

@james7132 james7132 closed this Jul 6, 2022
@james7132 james7132 deleted the yeet-fetch-state branch December 12, 2022 06:44
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-Code-Quality A section of code that is hard to understand or change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants