Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Precompute Scope.watch ASTs #1088

Closed
wants to merge 7 commits into from

Conversation

jbdeboer
Copy link
Contributor

No description provided.

@jbdeboer jbdeboer added cla: yes and removed cla: no labels May 30, 2014
@jbdeboer
Copy link
Contributor Author

jbdeboer commented Jun 3, 2014

Comments please; I plan on starting to merge this PR tomorrow.

@IgorMinar Made the point that after the context parameter is removed, these could be simply cached after the first View is created..

@vicb
Copy link
Contributor

vicb commented Jun 3, 2014

One general comment is that I've changed the ASTParser to be private a few weeks ago.
I'll look to this PR in more details today.

jbdeboer added 7 commits June 4, 2014 13:23
…t:o)

This is the only place where Scope.watch(context:o) is used and it is
in the way of optimizations.

For dart-archive#1086
Scope.watch should no longer switch context.  Instead of saying

    scope.watch(expression, (v, _) { }, context: o);

Create a new isolate child scope

    scope.createChild(o).watch(expression, (v, _) { });
-> Make it injectable
-> Remove try/catch statements are extra state
-> Rename AstParser -> ASTParser
-> Rename ExpressionVisitor -> _ExpressionVisitor

For dart-archive#1086
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

2 participants