by gmadsen · 1y ago · 0 comments
On coroutines it’s not the network but the L1 cache. You’re better off running a function a dozen times and then running another than running each in turn.
rust accepted the tradeoff and can do pure stack async,
there are things you can do in c++ to not get the dynamic allocation to heap, but it requires a custom allocator + predefining size of coroutines.
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines...