News for hackers. Stuff that matters.
Re:ES6 Performance by inglor on Friday July 03, 2015 @02:08PM (#9827032)
Promises - the assumption here is that native promises are fast - this is amusing. Userland implementations like Bluebird promises are significantly faster than native promises. Not to mention the fact that converting an API to use promises is slow with native promises - a native `promisify` will have to be provided for Node, it's being worked on.
Re:ES6 Performance by skrebbel on Friday July 03, 2015 @03:04PM (#9827363)
How often do you do async stuff per millisecond that this starts to matter? At least for browser stuff I really don't see the problem.
Re:ES6 Performance by iamstef on Friday July 03, 2015 @06:01PM (#9828173)
The problem usually arises when the GC pressure introduced from the promises (often the intermediate promises) created by many active/concurrent tasks starts burning copious amounts of cycles.

As your concurrency increases, a poor promise implementation starts burning copious amount of valuable cycles, often largely due to GC pressure.

In the abstract this doesn't sound that bad, but when comparing well behaved implementations such as BlueBird, RSVP, When, ES6-Promise etc. with the current state, (July 3, 2015) native Promises, the difference is still staggering.

As for the browser, a promise is a great way to handle async and often a great abstraction around a single potentially remote entity. As more ambitious applications are created, it isn't uncommon to have thousands or tens of thousands of these remote entities. Wouldn't it be nice, if the overhead of using the promise was negligible?

Re:ES6 Performance by wcummings on Friday July 03, 2015 @03:56PM (#9827613)
I've worked on node.js projects where certain promises implementations were too slow for the use-case
Re:ES6 Performance by spyder on Friday July 03, 2015 @10:39PM (#9828911)