lua-users home
lua-l archive

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


>> 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.