News for hackers. Stuff that matters.
Re:Comparison of Rust async and Linux thread context switch ... by the8472 on Friday February 12, 2021 @05:30AM (#26112199)
Call me noone then.

I write this kind of stuff all the time because parallelizing long-running tasks without dependencies is one of the easiest wins when it comes to wall-time.

But this kind of optimization is somewhat orthogonal to async/await. You don't need fine-grained async to optimize long-running tasks, you could just throw a bunch of closures into a threadpool for that purpose. Async only makes sense when you're interleaving thousands of tasks with readiness/completion based IO.

Re:Comparison of Rust async and Linux thread context switch ... by GordonS on Friday February 12, 2021 @06:23AM (#26112486)
It's rare that I personally write these kind of optmisations in web apps, but quite often do for backend processing services (and then, only for "embarrassingly async" operations such as hitting a database or HTTP API).