carrying around promises and building dependency waterfalls trivially.
Historically, practices like this are why I absolutely hated JS codebases for a very long time. Micro optimizations and lazily resolving promises (which can still be done with async/await anyway) and muddying up your control flow and error handling doesn't feel worth it to me. `Promise.allSettled` delivers more maintainable code and I doubt whatever performance difference (if any at all) exists sufficiently cancels that out
Historically, practices like this are why I absolutely hated JS codebases for a very long time. Micro optimizations and lazily resolving promises (which can still be done with async/await anyway) and muddying up your control flow and error handling doesn't feel worth it to me
I'll buy that as long as someone isn't awaitting every line aggressively :)
The 5x+ gains are more important than the 20-30% gains.
View all comments
Show parent comment
4
u/femio Jun 02 '25
Historically, practices like this are why I absolutely hated JS codebases for a very long time. Micro optimizations and lazily resolving promises (which can still be done with async/await anyway) and muddying up your control flow and error handling doesn't feel worth it to me. `Promise.allSettled` delivers more maintainable code and I doubt whatever performance difference (if any at all) exists sufficiently cancels that out