[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: C coroutines in ANSI C
- From: Mark Hamburg <mhamburg@...>
- Date: Wed, 03 Aug 2005 10:05:02 -0700
What's the cost of using C coroutines? What if you need lots of coroutines?
What if sometimes those coroutines want to use lots of C stack space for
non-yielding code?
This is what worried me about some of the previous proposals for using C
coroutines. They work well if you keep coroutine usage limited and/or you
can live with small C stacks for the coroutines. They don't seem to scale as
well as something like Mike's RVM changes, however.
That being said, the RVM code is significantly harder to get one's head
around than a C coroutine approach.
Mark