perf(compiler): fix perf issue in loading aot summaries in jit compiler
perf(compiler): fix perf issue in loading aot summaries in jit compiler

The current `flattenSummaries` function re-process the same NgModule
summary even if it has been processed before. Certain modules like
CommonModule are repeated multiple times in the module tree and it is
expanded out every time.

This was making unit tests using AOT summaries really slow. This will
also slow down JIT bootstrap applications that load AOT summaries for
component libraries.

The fix is to remember which summaries were seen before and not to
process them again.

filipesilva/angular,vikerman/angular,vicb/angular,gnomeontherun/angular,ghetolay/angular,IdeaBlade/angular,cironunes/angular,meeroslav/angular,snaptech/angular,trshafer/angular,mgol/angular,ValtoFrameworks/Angular-2,angular/angular,ghetolay/angular,petebacondarwin/angular,IdeaBlade/angular,mzgol/angular,NathanWalker/angular,trshafer/angular,Brocco/angular,angular-indonesia/angular,kegluneq/angular,alxhub/angular,dsebastien/angular,jonrimmer/angular,alexeagle/angular,IdeaBlade/angular,kegluneq/angular,mprobst/angular,ocombe/angular,dsebastien/angular,angular/angular,juristr/angular,wKoza/angular,filipesilva/angular,alexeagle/angular,vicb/angular,aboveyou00/angular,matsko/angular,alexeagle/angular,blesh/angular,rkirov/angular,rkirov/angular,gdi2290/angular,Toxicable/angular,shairez/angular,aboveyou00/angular,wKoza/angular,chuckjaz/angular,meeroslav/angular,vikerman/angular,gjungb/angular,gjungb/angular,jonrimmer/angular,vikerman/angular,rkirov/angular,gjungb/angular,mprobst/angular,heathkit/angular,JiaLiPassion/angular,Brocco/angular,kara/angular,hansl/angular,vicb/angular,aboveyou00/angular,jonrimmer/angular,petebacondarwin/angular,dsebastien/angular,meeroslav/angular,brandonroberts/angular,angular/angular,manekinekko/angular,brandonroberts/angular,jonrimmer/angular,IgorMinar/angular,meeroslav/angular,cironunes/angular,hansl/angular,mzgol/angular,snaptech/angular,mgechev/angular,gkalpak/angular,mzgol/angular,kegluneq/angular,cironunes/angular,vikerman/angular,hansl/angular,gkalpak/angular,juleskremer/angular,jonrimmer/angular,petebacondarwin/angular,hansl/angular,robwormald/angular,ocombe/angular,chuckjaz/angular,ocombe/angular,sarunint/angular,kegluneq/angular,sarunint/angular,kara/angular,mprobst/angular,aboveyou00/angular,kara/angular,aboveyou00/angular,Toxicable/angular,cironunes/angular,gdi2290/angular,Toxicable/angular,gdi2290/angular,pk-karthik/framework-js-angular,heathkit/angular,jasonaden/angular,blesh/angular,juristr/angular,mhevery/angular,petebacondarwin/angular,juristr/angular,ocombe/angular,vsavkin/angular,snaptech/angular,mgiambalvo/angular,mgol/angular,mgechev/angular,sarunint/angular,filipesilva/angular,manekinekko/angular,ultrasonicsoft/angular,gnomeontherun/angular,vsavkin/angular,ultrasonicsoft/angular,chuckjaz/angular,trshafer/angular,matsko/angular,alexeagle/angular,vicb/angular,jasonaden/angular,JiaLiPassion/angular,vikerman/angular,manekinekko/angular,alexeagle/angular,ghetolay/angular,kara/angular,Brocco/angular,heathkit/angular,wKoza/angular,wKoza/angular,Brocco/angular,gdi2290/angular,angular-indonesia/angular,kara/angular,jasonaden/angular,gnomeontherun/angular,mzgol/angular,blesh/angular,Toxicable/angular,matsko/angular,vikerman/angular,StephenFluin/angular,ValtoFrameworks/Angular-2,angular/angular,brandonroberts/angular,ultrasonicsoft/angular,meeroslav/angular,aboveyou00/angular,robwormald/angular,blesh/angular,kegluneq/angular,vsavkin/angular,cironunes/angular,LucasSloan/angular,ValtoFrameworks/Angular-2,IdeaBlade/angular,NathanWalker/angular,petebacondarwin/angular,alexeagle/angular,gnomeontherun/angular,robwormald/angular,alxhub/angular,IgorMinar/angular,mhevery/angular,brandonroberts/angular,heathkit/angular,Toxicable/angular,mgol/angular,mlaval/angular,gdi2290/angular,IgorMinar/angular,dsebastien/angular,angular-indonesia/angular,Brocco/angular,LucasSloan/angular,gkalpak/angular,LucasSloan/angular,petebacondarwin/angular,rkirov/angular,ocombe/angular,ultrasonicsoft/angular,NathanWalker/angular,mzgol/angular,manekinekko/angular,brandonroberts/angular,robwormald/angular,NathanWalker/angular,ultrasonicsoft/angular,NathanWalker/angular,StephenFluin/angular,JiaLiPassion/angular,heathkit/angular,mhevery/angular,shairez/angular,gdi2290/angular,vsavkin/angular,jasonaden/angular,ValtoFrameworks/Angular-2,IgorMinar/angular,vsavkin/angular,trshafer/angular,NathanWalker/angular,StephenFluin/angular,mzgol/angular,kegluneq/angular,mlaval/angular,ultrasonicsoft/angular,chuckjaz/angular,mlaval/angular,mhevery/angular,rkirov/angular,mgiambalvo/angular,cironunes/angular,mgechev/angular,matsko/angular,ghetolay/angular,robwormald/angular,pk-karthik/framework-js-angular,chuckjaz/angular,manekinekko/angular,mgiambalvo/angular,chuckjaz/angular,robwormald/angular,snaptech/angular,mlaval/angular,ocombe/angular,alxhub/angular,sarunint/angular,hansl/angular,ghetolay/angular,gjungb/angular,pk-karthik/framework-js-angular,mgiambalvo/angular,heathkit/angular,filipesilva/angular,Brocco/angular,shairez/angular,alxhub/angular,mgol/angular,matsko/angular,trshafer/angular,StephenFluin/angular,juleskremer/angular,mlaval/angular,LucasSloan/angular,rkirov/angular,brandonroberts/angular,manekinekko/angular,dsebastien/angular,sarunint/angular,mgechev/angular,blesh/angular,jonrimmer/angular,StephenFluin/angular,snaptech/angular,pk-karthik/framework-js-angular,snaptech/angular,Toxicable/angular,mgechev/angular,jasonaden/angular,mgol/angular,shairez/angular,juristr/angular,wKoza/angular,juristr/angular,kara/angular,mprobst/angular,juleskremer/angular,mgiambalvo/angular,trshafer/angular,gjungb/angular,ValtoFrameworks/Angular-2,IgorMinar/angular,sarunint/angular,juleskremer/angular,filipesilva/angular,mhevery/angular,shairez/angular,mhevery/angular,pk-karthik/framework-js-angular,mprobst/angular,angular-indonesia/angular,IgorMinar/angular,hansl/angular,LucasSloan/angular,mgol/angular,juristr/angular,juleskremer/angular,mprobst/angular,jasonaden/angular,LucasSloan/angular,JiaLiPassion/angular,vicb/angular,vicb/angular,wKoza/angular,dsebastien/angular,gkalpak/angular,alxhub/angular,IdeaBlade/angular