bevy/crates/bevy_ecs/src/query
Joseph e60249e59d
Improve codegen for world validation (#9464)
# Objective

Improve code-gen for `QueryState::validate_world` and
`SystemState::validate_world`.

## Solution

* Move panics into separate, non-inlined functions, to reduce the code
size of the outer methods.
* Mark the panicking functions with `#[cold]` to help the compiler
optimize for the happy path.
* Mark the functions with `#[track_caller]` to make debugging easier.

---------

Co-authored-by: James Liu <contact@jamessliu.com>
2023-09-21 20:57:06 +00:00
..
access.rs Allow disjoint mutable world access via EntityMut (#9419) 2023-08-28 23:30:59 +00:00
error.rs Moved get_component(_unchecked_mut) from Query to QueryState (#9686) 2023-09-11 19:04:22 +00:00
fetch.rs Add mutual exclusion safety info on filter_fetch (#9836) 2023-09-19 21:49:33 +00:00
filter.rs Fix naming on "tick" Column and ComponentSparseSet methods (#9744) 2023-09-11 19:25:06 +00:00
iter.rs Fix safety invariants for WorldQuery::fetch and simplify cloning (#8246) 2023-07-25 21:16:22 +00:00
mod.rs Moved get_component(_unchecked_mut) from Query to QueryState (#9686) 2023-09-11 19:04:22 +00:00
par_iter.rs Round up for the batch size to improve par_iter performance (#9814) 2023-09-18 16:02:58 +00:00
state.rs Improve codegen for world validation (#9464) 2023-09-21 20:57:06 +00:00