4 ms·
Performance: I cannot honestly remember a single case in my entire Node.js career where promise execution time was a performance bottleneck. Inconsistency: If
by notduncansmith 12y ago
Performance: I cannot honestly remember a single case in my entire Node.js career where promise execution time was a performance bottleneck.
Inconsistency: If you're consistent in your promise library usage, then promises will always behave the same way. Wrap libraries as necessary.
Promises are incredibly easy to reason about - the code reads very synchronously. Until we have native concurrency primitives available at the language level, I'll settle for ".then". It's pretty much how I'd read it in my head anyways.
If promises are a hassle, you're probably not using them correctly.