-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REFACTOR] Simplify get and computeds
This refactor simplifies get and computeds in the following ways: - Removes several brand checks that were unnecessary from `get`: - `isEmberArray`: Ember Arrays that are not native arrays will automatically be tracked through proper usage. - `isProxy`: This was only necessary for conditionals, and updates in the VM allow us to autotrack that instead. - Uses `tagFor` instead of `tagForProperty` in many places including `get`. This allows us to avoid the brand check for `CUSTOM_PROPERTY_TAG`, which is really only necessary for chain tags. - Updates everywhere that looks up tags multiple times on the same object to use a shared `tagMeta` so we don't lookup that map multiple times. - Moves computed revision and value caches onto Meta, so we're looking up fewer maps. - Creates a new AutoComputed descriptor for computed properties that use autotracking, so we can simplify the get logic for standard CPs.
- Loading branch information
Chris Garrett
committed
Aug 5, 2020
1 parent
3ef8495
commit 72d0216
Showing
21 changed files
with
410 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.