logoalt Hacker News

nchietoday at 8:32 AM2 repliesview on HN

> But are we really saying that the primary motivation for async/await is performance?

Of course - what else would it be? The whole async trend started because moving away from each http request spawning (or being bound to) an OS thread gave quite extreme improvements in requests/second metrics, didn't it?


Replies

groundzeros2015today at 8:36 AM

I agree. Managing many http requests or responses was a motivating problem.

What I question is whether 1. Most programs resemble that, so that they make it an invasive feature of every general purpose language. 2. Whether programmers are making a conscious choice because they ruled out the perf overhead of the simpler model we have by default.

show 1 reply
lukaslalinskytoday at 11:50 AM

It was not for performance reasons, but for scaling up.

show 1 reply