bevy/crates/bevy_ecs/src/query
Christian Hughes a0c722ff4c
Reduce memory usage in component fetches and change detection filters (#15283)
## Objective

- Adopted #6396

## Solution

Same as #6396, we use a compile-time checked `StorageSwitch` union type
to select the fetch data based on the component's storage type, saving
>= 8 bytes per component fetch in a given query.

Note: We forego the Query iteration change as it exists in a slightly
different form now on main.

## Testing

- All current tests pass locally.

---------

Co-authored-by: james7132 <contact@jamessliu.com>
Co-authored-by: Chris Russell <8494645+chescock@users.noreply.github.com>
2024-09-27 14:06:40 +00:00
..
access.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
builder.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
error.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
fetch.rs Reduce memory usage in component fetches and change detection filters (#15283) 2024-09-27 14:06:40 +00:00
filter.rs Reduce memory usage in component fetches and change detection filters (#15283) 2024-09-27 14:06:40 +00:00
iter.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
mod.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
par_iter.rs Fix query transmute from table to archetype iteration unsoundness (#14615) 2024-08-27 00:58:40 +00:00
state.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
world_query.rs Add query reborrowing (#14690) 2024-08-15 17:38:56 +00:00