lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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