News for hackers. Stuff that matters.
Re:Why choose async/await over threads? by AstralStorm on Monday March 25, 2024 @07:11AM (#39814772)
Said badly with code will still execute with poor performance and the mix can be actively hard to spot.
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.
Re:Why choose async/await over threads? by maccard on Monday March 25, 2024 @09:02AM (#39815772)
Badly written threaded code will have the same problem, unfortunately