3 ms·
Your assumptions are outdated and this is FUD. Promises that implement Promises A+ are consistent. The fact that jQuery's implementation is broken has no relat
by danabramov 12y ago
Your assumptions are outdated and this is FUD.
Promises that implement Promises A+ are consistent. The fact that jQuery's implementation is broken has no relation to promises whatsoever (nobody seriously calls them promises anymore).
But I was talking about a different kind of consistency: consistency in your code. Errors not being swallowed, the same representation for all async values.
The performance post you linked to is almost a year old and is quite outdated. Since it was posted, Bluebird[1] was written and leveled up the game:
file time(ms) memory(MB)
promises-bluebird-generator.js 171 16.52
callbacks-baseline.js 197 20.68
promises-bluebird.js 280 26.64
promises-lvivski-davy.js 616 58.75
promises-dfilatov-vow.js 672 80.59
promises-cujojs-when.js 731 68.74
callbacks-caolan-async-waterfall.js 733 44.57
[1]: https://github.com/petkaantonov/bluebird/blob/master/benchmark/stats/latest.md https://github.com/petkaantonov/bluebird/blob/master/benchma...