ysmood / yaku

A lightweight promise library
https://tonicdev.com/ysmood/yaku
MIT License
290 stars 28 forks source link

long stack traces #7

Closed ollym closed 9 years ago

ollym commented 9 years ago

Are there any benchmarks which say what the trade-off is with using long stack traces?

Thanks

ysmood commented 9 years ago

@ollym The trade-off is very significant, it will definitely slow down you application. I think there no reference value to have this benchmark. Don't enable it when your application is on production mode. Use it when you have to handle some complex async bugs.

@ollym By the way, Bluebird will also slow down significantly when it is enabled.

ollym commented 9 years ago

@ysmood in a browser environment it's ok to enable it though?

ysmood commented 9 years ago

@ollym For browser, no need. See the FQA of readme. When you debug your site, for example, in Chrome, just enable the async flag, you will get the long stack trace automatically, and its user experience is much better than any promise lib.