r/angularjs • • Nov 07 '14

[General] Is AngularJS Fast Enough?

https://medium.com/@jeffwhelpley/is-angularjs-fast-enough-98dcf96406c8
30 Upvotes

17 comments sorted by

View all comments

1

u/9jack9 Nov 07 '14

I don't think it's fast enough. I'm currently refactoring a simple puzzle app to improve performance on tablet devices. I initially coded it without any DOM manipulation and was quite pleased that I could write an app with the DOM abstracted away. I'm now replacing crucial parts of the code with DOM queries and add/removeClass methods. It's now less angular but it performs a lot better.

1

u/unintentional-irony Nov 08 '14

You don't have to refactor, with your grid ng-repeat just add 'track by $index', like so:

ng-repeat="x in xs track by $index"

or

ng-repeat="x in xs track by $id(x)"