|
|
|
|
|
by tentacleuno
969 days ago
|
|
Promises are inherently going to be a lot slower than synchronous code (not to mention timing implications, re: the event loop, microtask queue, etc.). As such, wrapping everything in Promises is not a good idea -- reserve it for actually asynchronous operations. (All of that's not even to mention the confusion around what operations in the code actually perform asynchronous actions.) |
|
Not that it matters - if you're going down this route either way, performance is not your priority. If you really care about performance, don't use either if you don't have to.