bevy/crates/bevy_ecs/src/world
Giacomo Stevanato 8d51f4a2a5 Remove useless access to archetype in UnsafeWorldCell::fetch_table (#7665)
# Objective

- #6402 changed `World::fetch_table` (now `UnsafeWorldCell::fetch_table`) to access the archetype in order to get the `table_id` and `table_row` of the entity involved. However this is useless since those were already present in the `EntityLocation`
- Moreover it's useless for `UnsafeWorldCell::fetch_table` to return the `TableRow` too, since the caller must already have access to the `EntityLocation` which contains the `TableRow`.
- The result is that `UnsafeWorldCell::fetch_table` now only does 2 memory fetches instead of 4.

## Solution

- Revert the changes to the implementation of `UnsafeWorldCell::fetch_table` made in #6402
2023-02-15 04:39:18 +00:00
..
entity_ref.rs Rename UnsafeWorldCellEntityRef to UnsafeEntityCell (#7568) 2023-02-11 18:50:41 +00:00
identifier.rs Implement SparseSetIndex for WorldId (#7125) 2023-01-09 21:43:27 +00:00
mod.rs Move all logic to UnsafeWorldCell (#7381) 2023-02-06 19:02:52 +00:00
spawn_batch.rs add more SAFETY comments and lint for missing ones in bevy_ecs (#4835) 2022-07-04 14:44:24 +00:00
unsafe_world_cell.rs Remove useless access to archetype in UnsafeWorldCell::fetch_table (#7665) 2023-02-15 04:39:18 +00:00
world_cell.rs Move all logic to UnsafeWorldCell (#7381) 2023-02-06 19:02:52 +00:00