bevy/crates/bevy_ecs/src
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 Make EntityRef::new unsafe (#7222) 2023-01-16 22:10:51 +00:00
query Rename Tick::is_older_than to Tick::is_newer_than (#7561) 2023-02-09 16:21:22 +00:00
schedule Rename state_equals condition to in_state (#7677) 2023-02-14 21:30:14 +00:00
storage Add World::clear_resources & World::clear_all (#3212) 2023-01-17 04:20:42 +00:00
system Allow piping run conditions (#7547) 2023-02-07 22:22:16 +00:00
world Remove useless access to archetype in UnsafeWorldCell::fetch_table (#7665) 2023-02-15 04:39:18 +00:00
archetype.rs use bevy_utils::HashMap for better performance. TypeId is predefined … (#7642) 2023-02-15 04:19:26 +00:00
bundle.rs use bevy_utils::HashMap for better performance. TypeId is predefined … (#7642) 2023-02-15 04:19:26 +00:00
change_detection.rs Document usage of SRes::into_inner on the RenderCommand trait (#7224) 2023-02-13 18:44:26 +00:00
component.rs use bevy_utils::HashMap for better performance. TypeId is predefined … (#7642) 2023-02-15 04:19:26 +00:00
event.rs Optimize Iterator::count for event iterators (#7582) 2023-02-13 18:20:21 +00:00
lib.rs use bevy_utils::HashMap for better performance. TypeId is predefined … (#7642) 2023-02-15 04:19:26 +00:00
reflect.rs Rename UnsafeWorldCellEntityRef to UnsafeEntityCell (#7568) 2023-02-11 18:50:41 +00:00
removal_detection.rs Add a wrapper around Entity for RemovedComponents (#7503) 2023-02-05 15:37:07 +00:00