Hi Prem,

Every {{ something }} is a 2 way binding by default, and there will be a 
watch on it.
so you have at least 31 watches in every row. an ng-show and ng-hide also 
use a watch, as 
do some other directives. so you are probably up to 35-40 watches in each 
row.
doing the math, that's 700x35/40=17,500 to 28,000 watches. that's a lot.

If you push a new expression to the DOM, the logic inside there might 
change anything inside the ones already there.
So for everything you push into the DOM, all the watches fire. 

As there are no one-time bindings in the version you use, it has to run 
through all the watches every time.
Now you know this, I guess you are surprised that your solution is a quick 
as it is now ;) 
(adding your last row is executing 35 to 40 times all the watches...., now 
1055Ms seems not so slow anymore is it?)

Regards
Sander


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to