News for hackers. Stuff that matters.
Re:Why choose async/await over threads? by neonsunset on Monday March 25, 2024 @07:29AM (#39814932)
You would be surprised. It ultimately regresses to "thread per request but with extra steps". I remember truly atrocious codebases that were spamming task.Result everywhere and yet there were performing tolerably even back on .NET Framework 4.6.1. The performance has (and often literally) improved ten-fold since then, with threadpool being rewritten, its hill-climbing algorithm receiving further tuning and it getting proactive blocked workers detection that can inject threads immediately without going through hill-climbing.

There are no comments on this comment yet.