|
|
|
|
|
by zetaposter
1083 days ago
|
|
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? |
|