lua-users home
lua-l archive

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


On 1/29/06, Sergey Redin <sergey@redin.info> wrote:
>  I need to create a new Lua universe for
> each thread (that is every second), and compile the script (or at
> least initilise and execute the chunk) every time (and also close
> the Lua state when it is time to finish the thread). I am sure
> this will work fine but I do not think it is the best solution.
> I did not actually make any tests yet, but I do not like the idea
> to do all this initialisation every time.

Before you do anything else I think you should check to see how
long it takes to create a Lua universe. The Lua initialization is v quick.

DB