[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: On lua5 and embedding
- From: "Peter Hill" <corwin@...>
- Date: Fri, 31 Jan 2003 12:01:09 +0800
>> Aside from the fact that Lua4 is simply faster on function calls by up
>> to 30%
Roberto Ierusalimschy:
> This is one point I do not argue (although, as the tests sugest, this
> difference is quite smaller when the function does anything). But this
> slowdown is a consequence of coroutines, not of metatables. If someone
> argues that we shold remove coroutines from the language so it would run
> faster, then we have a very different scenario.
I (not being aware of how the internals of your co-routines are implemented)
am wondering why having coroutines now makes general Lua function calls
slower?
*cheers*
Peter Hill.