lua-users home
lua-l archive

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


2009/12/10 Kristofer Karlsson <kristofer.karlsson@gmail.com>:
> Also, your "next" implementation seems rather slow, iterating through a
> table would take O(n^2) time it seems.

Indeed.  So don't do that then (the doc says this too!).

The standard table iterator does not use next().

Personally I regard next() as bit of a hackily exposed internal
implementation detail.  Jill isn't the only implementation to
"penalise" next(), right?

drj