[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Getting the callers environment in c
- From: Patrick Donnelly <batrick@...>
- Date: Thu, 10 Mar 2011 13:49:16 -0500
On Thu, Mar 10, 2011 at 1:01 PM, Chris Gagnon <cgagnon@zindagigames.com> wrote:
> I likely have 100's of active(all but one suspended at one time of course)
> coroutines.
> I also likely have 500ish coroutines created a second, many of which don't
> need to be a coroutine.
> This is where I'm attempting to save performance and memory.
So reuse coroutines? With a wrapper "main" function you can keep
calling some new sandbox. Then you only need to change the environment
of the thread.
--
- Patrick Donnelly