3 ms·
Yeah that's why in nodejs I made functions as async unless I know really well that it won't need await. Though that seems bad, it's not the worst due to how goo
by fendy3002 2y ago
Yeah that's why in nodejs I made functions as async unless I know really well that it won't need await. Though that seems bad, it's not the worst due to how good async/await actually is.
Unpopular opinion, it makes me want to have a setting where all function is async by default, and all function calls are await by default. With `nowait` and `sync` as the opposite
- pier25 2y agoIn V8 it used to be the case that every await was translated into 3 extra function calls and this caused big perf issues. These days I think it's only one extra function call but still...