|
|
|
|
|
by torginus
1515 days ago
|
|
While I can't answer the question directly there is an article about C#-s async/await vs Go's goroutines, which compare the two approaches, and while some of the stuff is probably stack-specific, a lot of it is probably intrinsic to the approach: - Green threads scale somewhat better, but both scale ridiculously well, meaning probably you won't run into scaling issues. - async/await generators use way less memory than a dedicated green thread, this affects both memory consumption and startup time, since the process has to run around asking the OS for more memory - green threads are faster to execute Here's the link: https://alexyakunin.medium.com/go-vs-c-part-1-goroutines-vs-... |
|