[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Threads again
- From: D Burgess <dburgess@...>
- Date: Sun, 29 Jan 2006 10:42:27 +1100
On 1/29/06, Sergey Redin <firstname.lastname@example.org> 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.