News for hackers. Stuff that matters.
Re:Zero-cost futures in Rust by tomp on Thursday August 11, 2016 @07:45PM (#12272532)
Couldn't you switch on timeout using some kind of CPU counter, e.g. RDTSC?
Re:Zero-cost futures in Rust by pcwalton on Thursday August 11, 2016 @08:37PM (#12272774)
Then you're polling the system clock all the time, which is a large unnecessary throughput loss.
Re:Zero-cost futures in Rust by tomp on Friday August 12, 2016 @06:13AM (#12274402)
But that's just one instruction, highly paralelisable (I assume), as opposed to going through the kernel... Anyways, I haven't measured it, it's just an idea I had!