You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I have a issue with performance. When I upgrade my app angular 1.2 to 1.3. The app run very slow when digest a big data. $digest in 1.2 just 3s but in 1.3 it take about 10s. I checked and saw angular.copy in 1.2 is run faster than 1.3 2-3 times. You can check it in: http://jsfiddle.net/hoanghaibui2003/0npr2sqn/2/
The text was updated successfully, but these errors were encountered:
We don't really encourage using the built-in helper methods, because they are mainly for internal purposes. So it's unlikely that we will prioritize fixing these perf regressions.
I see in function digest line 14308 version 1.3.15 use "copy". It's mean if I watch a big object the digest will very slow than 1.2. Currently, I use JSON.parse(JSON.stringify(source)); for angular.copy and it run faster
The built-in helpers are not built for speed. copy is maybe an exception as it often used by the watch / digest mechanism. There's an issue about this here: #11099
I have a issue with performance. When I upgrade my app angular 1.2 to 1.3. The app run very slow when digest a big data. $digest in 1.2 just 3s but in 1.3 it take about 10s. I checked and saw angular.copy in 1.2 is run faster than 1.3 2-3 times. You can check it in: http://jsfiddle.net/hoanghaibui2003/0npr2sqn/2/
The text was updated successfully, but these errors were encountered: