-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Take advantage of util.promisify()
if it lands in Node.js
#41
Comments
@sindresorhus Don’t forget to benchmark, though. ;) I think the real advantage of I’ve tried some ad-hoc benchmarking, and the current way |
It landed today 🎉 |
using pify until Node 8 LTS :) |
|
@sindresorhus I've proposed #68 to use native @addaleax I've implemented a benchmark suite to see how perf differs. But results shows that |
I have decided not to do this: #68 (comment) |
Just opening this so I don't forget.
util.promisify()
can interact directly with the V8 API, so it doesn't create closures and will be faster than userland implementations.nodejs/node#12442
The text was updated successfully, but these errors were encountered: