dart-archive / angular_analyzer_plugin

WORK MOVED TO dart-lang/angular repository
https://github.com/dart-lang/angular/tree/master/angular_analyzer_plugin
68 stars 13 forks source link

Improve autocompletion latency #671

Open MichaelRFairhurst opened 5 years ago

MichaelRFairhurst commented 5 years ago

I've noticed a big cause of latency is giant directive lists:

directives: [
  OMEGA_LIST_OF_ZILLIONS_OF_DIRECTIVES,
  ...
],
  template: "<one-directive-from-list>...

The cost of analyzing each directive's source to "link" them pre completion is really high.

It would be a really good idea to do this lazily.

Importance and severity are both really high because intelliJ (or maybe its the DAS plugin API, I forget) has a maximum timeout and for certain cases we miss that timeout entirely and autocompletion just doesn't even work.

MichaelRFairhurst commented 5 years ago

It seems @manuscle for instance is getting timeouts. Definitely a P1.