lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
/snip
> 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.
> 
> -- Roberto

That's a slowdown I'll gladly accept. I have just discovered how
elegant coroutines are for event-oreinted programming... 
Still, maybe there are some people who'd like to disable 
their coroutines?  For those people, perhaps some 
#define LUA_NOCOROUTINES could be implemented to allow 
turning off the coroutines?  


-- 
"No one knows true heroes, for they speak not of their greatness." -- 
Daniel Remar.
Björn De Meyer 
bjorn.demeyer@pandora.be