Currently when the ResolveCss step encounter a style element, it set currentElement.ignoreBindings to true to "disable" further steps.
What about terminating the compile process earlier in such a case - it would speed up compilation.
I see two ways to do this:
- returning a value from
step.process(),
- add a
terminate() method in CompileControl:
export class CompileControl {
_exit: boolean;
internalProcess(results, startStepIndex, parent:CompileElement, current:CompileElement) {
this._exit = false;
for (var i=startStepIndex; i<this._steps.length && !this._exit; i++) {
//...
}
}
terminate() {
this._exit = true;
}
}
@tbosch, what do you think ?
Currently when the
ResolveCssstep encounter a style element, it setcurrentElement.ignoreBindingsto true to "disable" further steps.What about terminating the compile process earlier in such a case - it would speed up compilation.
I see two ways to do this:
step.process(),terminate()method inCompileControl:@tbosch, what do you think ?