3 ms·
There's some discussion on the ko google groups about this : https://groups.google.com/forum/?fromgroups#!topic/knockoutjs/xb0oS00ndlE https://groups.google.co
by krosaen 15y ago
There's some discussion on the ko google groups about this :
https://groups.google.com/forum/?fromgroups#!topic/knockoutjs/xb0oS00ndlE https://groups.google.com/forum/?fromgroups#!topic/knockoutj...
you are right, the correct version is perhaps slightly faster than the ember, but way slower than the backbone example.
However, by leveraging an optimized ko.computed implementation
http://mbest.github.com/knockout-deferred-updates/ http://mbest.github.com/knockout-deferred-updates/
the results are much more impressive.
http://jsfiddle.net/2pLk3/10/ http://jsfiddle.net/2pLk3/10/
- Lazare 15y agoI'm don't agree that that the version with unused intermediate computed observables is the only correct version (or that there even is only one correct version). Avoiding the use of intermediate computeds makes the Knockout version roughly as fast as Backbone for this specific benchmark, and more closely replicates the functionality of the Backbone example. That sounds like the correct version to me.