3 ms·
async/await is still slower in 8.10 than promises though, isn't it? Also, I'd be interested to find out why this is so massive? We've been waiting a long time
by niklasrde 9y ago
async/await is still slower in 8.10 than promises though, isn't it?
Also, I'd be interested to find out why this is so massive? We've been waiting a long time for this, and I get that Lambda is complex with lambda@edge and all that, but how much tweaking does AWS do to the node runtime before they can deploy this?
Node 8 has been out for 10 months, and it's been LTS for half a year - or did they simply wait for it to be stable enough to run, or anything specific in 8.10?
- hn_throwaway_99 9y ago> async/await is still slower in 8.10 than promises though, isn't it? No, it's not. Async/await is basically just syntactic sugar around promises.
- bastawhiz 9y agoIn a world where cold starts have a substantial impact on performance, the runtime cost of async/await is negligible. If your function takes even a second longer to execute because of await use, I'd be incredibly surprised.
- Blackstone4 9y agoMaybe massive was an exaggeration. Before node 8.10, AWS Lambda used 6.10 which was frustrating. If you used async/await so you would have to transpile your code or upload a node binary. So really it's more convenient. Not sure why it takes 10 months to move to the new runtime. On the whole I feel like the JS/TS eco-system is getting better and better. Especially since browsers and runtimes are converging towards ES6/7 :)