[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Progressively worse performance from a table
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 8 Jan 2004 21:15:49 -0200
>Could this code be made faster by making "word" a local variable?
>
>local word;
>for word in io.lines("/usr/dict/words") do
No, because the control variables in a for loop are already local (to the
scope of the for loop). See http://www.lua.org/manual/5.0/manual.html#2.4.5
--lhf