search

Home  >  Q&A  >  body text

node.js - nodejs完全支持promise了,现在还需要再用Bluebird这类三方库了吗

nodejs完全支持promise了,现在还需要再用Bluebird这类三方库了吗如题

PHPzPHPz2781 days ago566

reply all(7)I'll reply

  • 高洛峰

    高洛峰2017-04-17 16:26:36

    Node nativePromise在效率上比callback差很多,bluebird好像和callback效率很接近.用bluebirdis still very suitable.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 16:26:36

    Node’s native promises are said to be less efficient than bluebird. Not sure exactly. .

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 16:26:36

    There are a lot of methods in bluebird that are not included in ES6.

    reply
    0
  • PHPz

    PHPz2017-04-17 16:26:36

    How does Bluebird make it faster than the native implementation?

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 16:26:36

    Waiting for the next version of v8, the speed will be qualitatively improved. https://v8project.blogspot.co...

    reply
    0
  • PHPz

    PHPz2017-04-17 16:26:36

    ~~If there is a native one, use the native implementation~~

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 16:26:36

    1. Bluebird has higher performance than native
    2. Bluebird not only implements the Promise/A+ standard, but also extends many practical methods
    3. If it is a browser project, use native, bluebird is larger

    reply
    0
  • Cancelreply