It’s mostly all about malloc perf. Async/await avoids allocations (alliteration!) BTW, the syscall cost of spawning a thread on Linux is a lot less than the cost of allocating the stack.
-
-
Doesn't this vary a lot between OSs? I would be very surprised if Go threads were not faster than Windows kernel threads.
-
Yes, I mean on Linux.
End of conversation
New conversation -
-
-
This seems like an implementation-specific comment. I could very well be wrong. What's the relation between gen gc and green threads, and what operations does gc impact? Quite curious.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.