3 ms·
C++ stackless co-routines are pretty lightweight. A few years back, when I was writing something for a presentation, I spun up 50 million coroutines, and arran
by jbandela1 6y ago
C++ stackless co-routines are pretty lightweight.
A few years back, when I was writing something for a presentation, I spun up 50 million coroutines, and arranged them in a ring with channels and passed a value all the way from each co-routine to the other, on Windows Laptop with 8GB of RAM.
I don't recall the exact amount of memory used, but my laptop handled it really well.