Improving Angular performance with 1 line of code
31–40 of 118 posts
Re: Improving Angular performance with 1 line of code
#32As someone who's specialized in AngularJS optimization [0], this doesn't surprise me in the least. Developers leave plenty of performance optimizations on the table, some worse than this one. The truth of the matter is that in the general case, it doesn't matter. We engineers like to go on and on about this or that perf efficiency but most of the time the code runs fast enough (and the majority of the time when it do…
Re: Improving Angular performance with 1 line of code
#33Re: Improving Angular performance with 1 line of code
#34https://github.com/angular/protractor/blob/master/CHANGELOG....
Re: Improving Angular performance with 1 line of code
#35Re: Improving Angular performance with 1 line of code
#36I love moments like this.
Re: Improving Angular performance with 1 line of code
#37I've searched a few minutes for any blog post or article which demonstrates the performance difference between turning this setting on or off, and I haven't found anything. If you don't have a benchmark, you don't have a performance boost.
This is a silly statement. Not everything is placebo. I'm working on a bigger Angular application and adding this one line of code made a small perceivable difference.
Re: Improving Angular performance with 1 line of code
#38Wow, I did not know that everyone else also right clicked to "inspect element" all over the place, for no reason... I love moments like this.
#nevertrusttheclient
Re: Improving Angular performance with 1 line of code
#39Re: Improving Angular performance with 1 line of code
#40As someone who's specialized in AngularJS optimization [0], this doesn't surprise me in the least. Developers leave plenty of performance optimizations on the table, some worse than this one. The truth of the matter is that in the general case, it doesn't matter. We engineers like to go on and on about this or that perf efficiency but most of the time the code runs fast enough (and the majority of the time when it do…
Unfortunately a bunch of inherited legacy code uses angular.element().scope() in a lot of places which then breaks without this turned on, so I had to revert it.