This repository has been archived by the owner on Mar 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decouple observedSet from PathObservers
The basic idea here is that the observedSet is basically maintaining a write-barrier on all objects which are deps for a set of Paths. If any changes, then all paths must be checked. However, when paths are dirty-checked (because of deliver() or discardChanges()), it's not necessary to flush pending records. Because any dependent object changing will only ever cause the paths to be checked for new values, false positives are filtered out. This is a precursor to allowing multiple separate observers to use the same observedSet as a write-barrier, which will allow sharing of observation of common objects (Object.proto, etc...). R=arv BUG= Review URL: https://codereview.appspot.com/47630043
- Loading branch information
Showing
1 changed file
with
64 additions
and
58 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