[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Jill - Java Implementation of Lua Language.
- From: David Jones <drj@...>
- Date: Thu, 10 Dec 2009 15:46:06 +0000
2009/12/10 Kristofer Karlsson <firstname.lastname@example.org>:
> 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?