3 ms·
Some really impressive optimization techniques used in this library :) What's also really impressive is that ultra-fast means callback-level performance. And t
by spion 13y ago
Some really impressive optimization techniques used in this library :)
What's also really impressive is that ultra-fast means callback-level performance. And that performance is achieved even though promises are exception-safe (and don't crash the process like exceptions in callbacks ;)
In fact, this library may become the turning point that causes node.js userland to start switching to promises...
- onestone 13y agoImpressive indeed. A post by the author in the main NodeJS group (https://groups.google.com/forum/#!forum/nodejs https://groups.google.com/forum/#!forum/nodejs) would be great.
- scotth 13y agoLike what?
- spion 13y agoLike function templating using the Function constructor, try-catch wrapping, closure avoidance and many more. The source is a goldmine of JS optimization techniques (some V8-specific, some not so much)
- gruseom 13y agoThis sounds very interesting even to those of us who don't need a promises library. If you or anyone else would like to go into detail, I bet a lot of people here would care (including me).
- scarmig 13y agoI'll second that. Might be appropriate for a series of blog posts, even.
- esailija 13y agoThanks for your interest - the optimization guide is planned to go over everything I have done.
- spion 13y agoesailija is the author, and I believe he mentioned that he is planning to write an optimization guide (specific to the library, though it will probably contain generally useful info).
- dmak 13y agoI would definitely love to read up more on how and why things are optimized the way the are.