Re:Evio – Fast event-loop networking for Go
by cafxx on Saturday November 04, 2017 @07:46AM
(#15624614)
Well, I guess because the runtime has to do a bunch of work to dispatch the events to the appropriate goroutine that is blocked waiting for that event. Switching and synchronization between goroutines is cheap, not free.
[ Parent
| on HN ]
Re:Evio – Fast event-loop networking for Go
by amelius on Saturday November 04, 2017 @07:52AM
(#15624628)
And this solution does somehow not switch between goroutines?
Re:Evio – Fast event-loop networking for Go
by willvarfar on Saturday November 04, 2017 @07:55AM
(#15624636)
No, the event loop is just one big goroutine that calls all the handlers directly.
Re:Evio – Fast event-loop networking for Go
by allengeorge on Saturday November 04, 2017 @11:08AM
(#15625339)
Which...is the same as “not switch between goroutines” no?
Re:Evio – Fast event-loop networking for Go
by weberc2 on Saturday November 04, 2017 @09:02PM
(#15627649)
Correct. I'm fairly certain he was agreeing with you.
Re:Evio – Fast event-loop networking for Go
by willvarfar on Saturday November 04, 2017 @11:36AM
(#15625486)
(I think there was an edit)