Several performance updates to the Angular 1 version#2
Several performance updates to the Angular 1 version#2lgalfaso wants to merge 1 commit intodjsmith42:masterfrom
Conversation
|
Thanks for looking into the performance of this demo. Your most significant change is the This demo was meant to be representative of Angular apps in general, which are usually not designed to keep track of which scopes changed, because Angular 1 encourages global digest. TL;DR As you show, Angular 1 is not inherently slow. This demo, along with virtually any Angular 1 app, could be optimized to be fast, but app developers would have to depart from idiomatic Angular code to do so. |
|
@lgalfaso Also, did you see any improvement to the initial load speed with these changes? I do not. |
|
The initial built of the table is about the same with or without the
changes. If the random timeout is set to 10 (or 0) then the loadAll performance
is comparable with react (or slightly better).
Note that the fact that $timeout is a promise was used and this is also
true for $http. On the other side, it is true that global digests are
recommended (or at least what most people use)
|
Added several performance fixes to the Angular 1 version