Skip to content

Commit

Permalink
Reduce memory usage in component fetches and change detection filters (
Browse files Browse the repository at this point in the history
…#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>
  • Loading branch information
3 people authored Sep 27, 2024
1 parent d70595b commit a0c722f
Show file tree
Hide file tree
Showing 2 changed files with 268 additions and 159 deletions.
Loading

0 comments on commit a0c722f

Please sign in to comment.