refactor(ivy): remove forEach usage in ApplicationRef.tick (#29543)
refactor(ivy): remove forEach usage in ApplicationRef.tick (#29543)

forEach is slower as compared to a regular loop but more importantly
this change removes an anonymous function and thus makes stack traces
shorter and easier to read (important for perf analysis).

PR Close #29543

mlaval/angular,vikerman/angular,Toxicable/angular,mgechev/angular,snaptech/angular,mhevery/angular,shairez/angular,jasonaden/angular,mgechev/angular,gdi2290/angular,alexeagle/angular,gnomeontherun/angular,sarunint/angular,juristr/angular,gkalpak/angular,Brocco/angular,brandonroberts/angular,mprobst/angular,ocombe/angular,mgechev/angular,mlaval/angular,vikerman/angular,JiaLiPassion/angular,JiaLiPassion/angular,matsko/angular,gdi2290/angular,wKoza/angular,matsko/angular,sarunint/angular,manekinekko/angular,mprobst/angular,petebacondarwin/angular,alxhub/angular,IgorMinar/angular,StephenFluin/angular,filipesilva/angular,mprobst/angular,snaptech/angular,ocombe/angular,blesh/angular,Toxicable/angular,gdi2290/angular,petebacondarwin/angular,IdeaBlade/angular,mprobst/angular,shairez/angular,petebacondarwin/angular,IgorMinar/angular,blesh/angular,filipesilva/angular,jasonaden/angular,manekinekko/angular,wKoza/angular,StephenFluin/angular,angular-indonesia/angular,gnomeontherun/angular,Brocco/angular,IgorMinar/angular,brandonroberts/angular,Toxicable/angular,snaptech/angular,Toxicable/angular,juristr/angular,shairez/angular,mhevery/angular,wKoza/angular,IdeaBlade/angular,wKoza/angular,mhevery/angular,angular-indonesia/angular,alexeagle/angular,IgorMinar/angular,snaptech/angular,jasonaden/angular,IgorMinar/angular,Brocco/angular,ocombe/angular,sarunint/angular,angular/angular,mhevery/angular,alxhub/angular,Toxicable/angular,mprobst/angular,vikerman/angular,vikerman/angular,petebacondarwin/angular,JiaLiPassion/angular,Toxicable/angular,alexeagle/angular,juristr/angular,brandonroberts/angular,manekinekko/angular,IdeaBlade/angular,filipesilva/angular,StephenFluin/angular,mlaval/angular,matsko/angular,blesh/angular,JiaLiPassion/angular,angular/angular,mhevery/angular,juristr/angular,ocombe/angular,shairez/angular,ocombe/angular,alexeagle/angular,manekinekko/angular,IdeaBlade/angular,mgechev/angular,IdeaBlade/angular,alxhub/angular,gdi2290/angular,alexeagle/angular,angular/angular,gkalpak/angular,gkalpak/angular,blesh/angular,Brocco/angular,mlaval/angular,gnomeontherun/angular,sarunint/angular,mhevery/angular,brandonroberts/angular,alxhub/angular,manekinekko/angular,filipesilva/angular,StephenFluin/angular,shairez/angular,sarunint/angular,wKoza/angular,angular/angular,alxhub/angular,gkalpak/angular,petebacondarwin/angular,juristr/angular,Brocco/angular,ocombe/angular,brandonroberts/angular,filipesilva/angular,jasonaden/angular,Brocco/angular,StephenFluin/angular,sarunint/angular,angular-indonesia/angular,alexeagle/angular,juristr/angular,mprobst/angular,gnomeontherun/angular,vikerman/angular,snaptech/angular,gdi2290/angular,vikerman/angular,mgechev/angular,petebacondarwin/angular,jasonaden/angular,jasonaden/angular,snaptech/angular,matsko/angular,angular-indonesia/angular,gdi2290/angular,IgorMinar/angular,wKoza/angular,mlaval/angular,brandonroberts/angular,blesh/angular,manekinekko/angular,matsko/angular