I'm working on a project where performance is crucial because it's focused in working on mobile devices with few resources.
I ended up verifying that the Angular bind might not be as efficient as I expected, since I imagined that the triggers for checking a field would be through observes them themselves or checking their sets. But it seems that what is monitored for change is the entire context of the application and any changing in any instance of the context (even in isolated components) triggers a check on all the fields of the context, even if the change has no relation to it.
I created an example in plunkr to try to illustrate this behavior.
I have some questions about this behavior:
- Is this behavior really expected?
- Is it possible to change this behavior to something more efficient (which does not check everything with each change in context)?
- It is possible to create some insulation at component level. So that changes in component context do not trigger on checks outside of their own context?