lua-users home
lua-l archive

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



Short point on efficiency.

Within larger Lua wrappers (s.a. those for GUI libraries) I've noticed that it is often meaningful to use varargs for passing "the rest of the stuff" to C level functions. I won't go into details, just pointing out thatt '...' can, in fact, be a commonly used operator, and having it efficient is Good For Lua in general.

-ak

21.8.2004 kello 01:02, Rici Lake kirjoitti:

My argument is that tuples-as-functions are more useful and while possibly not as efficient as ..., much more efficient than varargs-as-tables, which is probably efficient enough (imho).