Postleaf / postleaf

Simple, beautiful publishing with Node.js.
https://www.postleaf.org/
MIT License
504 stars 204 forks source link

Use bluebird promises to improve performance #25

Closed Stateford closed 7 years ago

Stateford commented 7 years ago

Built in node.js Promises are 4x slower than blue bird, It's better to bring in the package bluebird and add the line js const Promise = require('bluebird');

I can do a PR if you think it's warranted, but it's probably a good idea overall to do it.

claviska commented 7 years ago

I was wondering about Bluebird, but wasn't aware it was actually faster. Good to know. It's already being used by some of Postleaf's deps, so I don't mind adding it to package.json. A PR would be great.

We could probably use Promise.mapSeries to address #5 as well.