Improving Angular performance with 1 line of code
As 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 doesn't, ads are to blame over framework tweaks).<p>Heck, I shouldn't even be saying this as it'll cut into my very lucrative field but unless you've got a confirmed performance problem, you shouldn't think about it at all.  Really.  Leave all of the fancy perf tweaks behind.  Sure, you might get ridiculed on Medium but that's par for the course here on the internet.  I'm afraid articles like these will cause lots of cargo-cult 'optimization' that just makes the job harder for future devs.<p>Make it <i>work</i>, make it work <i>well</i>, THEN make it work <i>fast</i>.<p>[0] I wrote Batarang's new perf panel before Google abandoned the project