E
E
Egor2015-01-14 07:19:37
Angular
Egor, 2015-01-14 07:19:37

Angular performance limitation. 2000 what?

Greetings.
I read about the limitation in Angular in 2000

data-bound objects
. What is it?
Can you tell me what objects to count?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
lega, 2015-01-14
@lega

There is no restriction.
This is just a number in a vacuum - the number of $watch objects at which an application of medium complexity could start to slow down on an old computer (when they did this calculation there ...) and the old version of Angular.js
The latest version of Angular.js has accelerated significantly, the power of computers has grown, on my average laptop Angular.js grinds out 11M simple $watch objects per second!
Here are links to some measurements.

Y
Yuri Yarosh, 2015-01-14
@voidnugget

This refers to the number of variables in $scope to which $watchers are applied, and during the $digest loop, the double bind is performed. It's treated like this .

S
Sergey Romanov, 2015-01-14
@Serhioromano

I already said that it is so I will not repeat it.
In order not to think about how this problem can overtake you, just use :: wherever you can. Everything that does not require feedback should be turned off.
This problem can only arise because in Angloyar, for all scope variables, watch. In this case, you can exceed this number without noticing. But if you use :: all the time and don't use it only where feedback is needed, then it's hard to imagine a scenario where this problem can become a reality.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question