lua-users home
lua-l archive

Re: Optimisations

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


Functions in Lua are just values as anything. So the same rules & benefits apply.
In short: yes. :)
Eva Schmidt kirjoitti 23.10.2007 kello 10:35:
Hello,
I read the Optimisation Coding Tips on the Lua Users Wiki (http:// lua-users.org/wiki/OptimisationCodingTips). It is recommended there to use local variables and futhermore bind also often used extern functions, i.e. from a library, to a local variable. I wondered if it would also be an optimisation to define functions in a single Lua script also as local everytime? Does this make any sense?
Thanks for response and kind regards!
Eva

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