mgechev / ngast

Parser for Angular projects.

Home Page:https://mgechev.github.io/ngast/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: is there a way to speed up the initial analysis?

JPGygax68 opened this issue · comments

Is there a way to save and reload the internal state of ngast ?

There's no mechanism in the Angular compiler that will allow us to persist its state or restore it from an external copy.

I agree this sounds like a very useful functionality, but I'm guessing this would be a low-priority feature request for the Angular compiler team at this point.

Thank you for the explanation. There may be another approach actually: since, in 99% of the cases, the Angular compiler will be running in the background anyway, there might be a way to have it output the AST at the same time?
(EDIT: obviously that would require the cooperation of Google.)

I'd say that this would be nearly impossible to prioritize currently. I'd suggest to close the issue for now and revisit in a year or so. Then we can directly discuss in angular/angular.

Closing for now.