lua-users home
lua-l archive

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


Geoff Leyland wrote:
> (What I don't understand in this case is why a trace was never
> even attempted for the pairs loop)

The parser generates different bytecodes when it recognizes
pairs()/next() in an iterator loop. I.e. this is already optimized
at the interpreter level. There's no point in triggering the
compiler for this kind of loop since it wouldn't compile, anyway.

--Mike