3 ms·
Thanks for the great contribution to the thread. Pretty much my thoughts. I do believe that having to allocate a large stack is a downside, but again, with com
by gpderetta 5y ago
Thanks for the great contribution to the thread. Pretty much my thoughts.
I do believe that having to allocate a large stack is a downside, but again, with compiler help it should be possible, at least in theory, to compile stackful coroutines whose stack usage is known and bounded (i.e all task switch happen at top level or on non recursive inlined functions) to exactly the same stack usage of stackless coroutines.