News for hackers. Stuff that matters.
Re:Zero-cost futures in Rust by saynsedit on Thursday August 11, 2016 @08:00PM (#12272620)
System call context switching is cheaper than and different from thread/scheduler context switching.
Re:Zero-cost futures in Rust by pcwalton on Thursday August 11, 2016 @08:23PM (#12272713)
OK, but that's irrelevant in this context because Go has to context switch either way.
Re:Zero-cost futures in Rust by zeeboo on Friday August 12, 2016 @12:00AM (#12273320)
It can also switch on memory allocations and function calls as well. I'd expect a large fraction of the context switches come from those events and don't go through the kernel.