3 ms·
I’d be curious to know how C++20’s stackless coroutines compare on memory usage.
by hedora 6y ago
I’d be curious to know how C++20’s stackless coroutines compare on memory usage.
- jbandela1 6y agoC++ 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.