Open mpj opened 11 years ago
Yeah. I think it will be eventually.
subscription slow down when ko.deferred enabled, comparison: http://jsperf.com/ko-computed-vs-subscription http://jsperf.com/ko-computed-vs-subscription-deferred
computed: 3x (cool!) but subscription: 0.5x
subscription slow down when ko.deferred enabled
That's interesting, I'll take a look when I have some time.
I've just made some updates to improve performance. The biggest functional change is that it now also eliminates duplicate updates for manual subscriptions.
Here's your test using the new version: http://jsperf.com/ko-computed-vs-subscription-deferred/2
Cool! Great work!
:+1: for merging to knockout officially. It's a must for any projects of a non-trivial scale. Any news on this?
I've forked Knockout for my own customizations but knockout-deferred overwrites some of the code in Knockout (mainly the computed) thus interfering with those changes. I'd rather not have to fork knockout-deferred as well.
I'll need to update this to support Knockout 3.2
@juuxstar. I understand your point about changing both. I'm hoping this will join Knockout whenever we do 4.0.
Because it's awsum and the right thing to do.