lua-users home
lua-l archive

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


Performance with ... Is a mixed bag.

Mike is correct that introducing the iterator function -- even as useful as
it is -- brings in memory allocation costs and hence is a lose for small
numbers of arguments.

My concern is that the standard idioms for iterating over varargs have
essentially quadratic time complexity and that's basically a problem waiting
to happen.

Mark