lua-users home
lua-l archive

Re: Does pulling out locals from loops improve performance?

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


* Lorenzo Donati:
> Am I missing something (I'm not an expert of Lua VM so I may have
> missed something related to the meaning of the instructions operands
> in the listings above)?
It makes a difference if the declaration within the loop hasn't got an
initializer. In that case, nil is loaded into the variable.

AltStyle によって変換されたページ (->オリジナル) /