This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(scope): early exit of digest loop
At any given time there are many watchers in the system. When watcher fires it can change the model. This change may now cause an earlier watch to be eligible for firing. For this reason the watches need to be re-checked several times, until no watchers fire. Currently the system loops until there is a clean run through the loop. This means that every watch needs to run at least twice. A better way is to remember the last fired watch, and then exit the loop early when the the last watch has been reached again.
- Loading branch information
Showing
2 changed files
with
59 additions
and
18 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