kefirjs / kefir

A Reactive Programming library for JavaScript
https://kefirjs.github.io/kefir/
MIT License
1.87k stars 97 forks source link

What makes Kefir faster than Bacon? #48

Closed mhelvens closed 9 years ago

mhelvens commented 9 years ago

I've seen the tree demo. Quite impressive. I'd be curious to know what makes Kefir.js fast / Bacon.js slow.

What do Kefir users sacrifice for this increased speed, if anything?

rpominov commented 9 years ago

It's a little hard to answer as I haven't closely compared Bacon's implementations to Kefir's. For what I know:

About what we sacrifice, I think there is only one feature that aren't implemented in Kefir in particular because of performance penalty — atomic updates. But it's not only about performance, it also pretty tricky to do right. Maybe Kefir will get this one day. (RxJS also doesn't have this, btw :)

Closing this, but feel free to continue discussion.

asaaki commented 9 years ago

This would be something for a FAQ section or comparison overview. Pretty good insight. Thank you!