bevy/benches/benches/bevy_ecs/iteration
Chris Russell 571b3ba475
Remove ArchetypeComponentId and archetype_component_access (#19143)
# Objective

Remove `ArchetypeComponentId` and `archetype_component_access`.
Following #16885, they are no longer used by the engine, so we can stop
spending time calculating them or space storing them.

## Solution

Remove `ArchetypeComponentId` and everything that touches it.  

The `System::update_archetype_component_access` method no longer needs
to update `archetype_component_access`. We do still need to update query
caches, but we no longer need to do so *before* running the system. We'd
have to touch every caller anyway if we gave the method a better name,
so just remove `System::update_archetype_component_access` and
`SystemParam::new_archetype` entirely, and update the query cache in
`Query::get_param`.

The `Single` and `Populated` params also need their query caches updated
in `SystemParam::validate_param`, so change `validate_param` to take
`&mut Self::State` instead of `&Self::State`.
2025-05-27 19:04:32 +00:00
..
heavy_compute.rs Remove ArchetypeComponentId and archetype_component_access (#19143) 2025-05-27 19:04:32 +00:00
iter_frag_foreach_sparse.rs
iter_frag_foreach_wide_sparse.rs
iter_frag_foreach_wide.rs
iter_frag_foreach.rs
iter_frag_sparse.rs
iter_frag_wide_sparse.rs
iter_frag_wide.rs
iter_frag.rs
iter_simple_foreach_hybrid.rs Fix Clippy lints in benchmarks (#16808) 2024-12-14 05:53:17 +00:00
iter_simple_foreach_sparse_set.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
iter_simple_foreach_wide_sparse_set.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
iter_simple_foreach_wide.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
iter_simple_foreach.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
iter_simple_sparse_set.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
iter_simple_system.rs Remove ArchetypeComponentId and archetype_component_access (#19143) 2025-05-27 19:04:32 +00:00
iter_simple_wide_sparse_set.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
iter_simple_wide.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
iter_simple.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00
mod.rs Make benchmark setup consistent (#16733) 2024-12-10 20:39:14 +00:00
par_iter_simple_foreach_hybrid.rs Fix Clippy lints in benchmarks (#16808) 2024-12-14 05:53:17 +00:00
par_iter_simple.rs Upgrade to Rust Edition 2024 (#17967) 2025-02-24 03:54:47 +00:00