4 ms·
AFAIK the main benefit to coroutines is getting to manually manage tiny stacks. For example, in Go, they mark a goroutine's stack as "hasn't executed since the
by jashmatthews 9y ago
AFAIK the main benefit to coroutines is getting to manually manage tiny stacks.
For example, in Go, they mark a goroutine's stack as "hasn't executed since the last time we marked", which makes GC with thousands of threads a lot faster.