MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/angularjs/comments/465pt6/is_angular_2_is_faster/d047fyn/?context=3
r/angularjs • u/davidtranwd1 • Feb 17 '16
16 comments sorted by
View all comments
12
The Angular 2 version gets significantly faster with trackBy support. https://github.com/angular/angular/pull/6779
trackBy
When profiling with the chrome devtools timeline I get
2 u/PerfectlyCromulent Feb 18 '16 Turns out it's even faster than trackBy to just wrap the name in an object: https://plnkr.co/edit/3yUoQyzzFfIuF6OTn8wq.Edit: faster on my Windows 10 desktop running Chrome 48, that is. YMMV. I was seeing ~36ms per interval of JS time for the trackBy version and ~24ms per interval for the object wrapper version.
2
Turns out it's even faster than trackBy to just wrap the name in an object: https://plnkr.co/edit/3yUoQyzzFfIuF6OTn8wq.
Edit: faster on my Windows 10 desktop running Chrome 48, that is. YMMV. I was seeing ~36ms per interval of JS time for the trackBy version and ~24ms per interval for the object wrapper version.
12
u/EmptyTon Feb 17 '16
The Angular 2 version gets significantly faster with
trackBysupport. https://github.com/angular/angular/pull/6779When profiling with the chrome devtools timeline I get