Thanks Sander once again,

Version using: 1.2.9

Yes I have complex object and I have 31 columns in the repeater. Some of
them (10 columns) are shown by default but rest are hidden initially using
ng-show/ ng-hide and ready to show if user choose it. Out of 31 columns I
am using two-way binding in only two columns rest are one-way binding with
some formatting filters.

One final request can you please elaborate "*all of those will run on every
update of the page.*", just curious to know the inner working of angular in
this context.


Thanks Christopher I will try bindonce.

r-
Prem





On Mon, Jul 28, 2014 at 8:33 AM, Christopher Hiller <[email protected]>
wrote:

> If upgrading is not possible, this project
> <https://github.com/Pasvaz/bindonce> may be helpful.
>
>
> On Sunday, July 27, 2014 2:40:25 AM UTC-7, Sander Elias wrote:
>>
>> Hi Prem,
>>
>> After I updated your jsbin, the creation of every row took under a single
>> Ms. The same for every row. row 1 and row 700 alike.
>> So the problem is not angular updating the DOM.
>> I guess your problem is that you have a massive amount of 2 way bindings.
>> This will slow down the page a lot.
>> (if you have 700 rows, with 5 bindings each, that's 3500!! bindings, all
>> of those will run on every update of the page.)
>> you are say you have a complex model, so the true amount of bindings will
>> probably a lot higher even than the 3500 I just mentions.
>> On a reasonable modern computer, in my experience up to 4000 bindings
>> isn't a big problem, provided that it are all well written ones!
>>
>> Do you really need all those bindings? Your user is scanning your table,
>> and updates it by hand? The data is highly dynamic, and needs
>> to be updated as soon as anything comes in from the server?
>>
>> Also version 1.0.5 is quite old. The newer version of angular are way
>> better equipped to deal with large(r) number of bindings.
>> Starting with 1.3.beta-10 (there is a version 17 already!) there is
>> support for one-time bindings. I think this will solve your problem with
>> the least of effort.
>>
>> Regards
>> Sander
>>
>>
>>
>>
>>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/LFfvSwHqDKw/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>



-- 
Regard,
Prem

-- 
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