2 ms·
Check out libdill[1] (in C): "Generally speaking, though, libdill's concurrency primitives are only a bit slower than basic C flow control statements. A context
by lossolo 7y ago
Check out libdill[1] (in C):
"Generally speaking, though, libdill's concurrency primitives are only a bit slower than basic C flow control statements. A context switch has been seen to execute in as little as 6 ns, with coroutine creation taking 26 ns. Passing a message through a channel takes about 40 ns."
Check also libmill[2] (from the same author), it's more Go'ish:
"It can execute up to 20 million coroutines and 50 million context switches per second."
1. http://libdill.org http://libdill.org
2. http://libmill.org http://libmill.org