News for hackers. Stuff that matters.
Re:How to think about `async`/`await` in Rust by zetaposter on Wednesday July 05, 2023 @12:24PM (#36602694)
I should add that the concurrent algorithm I described for processing data from a socket, i.e asynchronously read data fragment (i + 1) then do work on data fragment i, would only be optimal if the throughout of the work you do on the data is higher than reading throughout.

Even if the above condition doesn't hold, you would have to be very careful to do better with threads.

Is it just an arbitrary design decision that NodeJS is single-threaded?

There are no comments on this comment yet.