lua-users home
lua-l archive

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


Tim Conkling wrote:
If I know that a given table will never have a metatable associated with it, is there a significant speed advantage to calling the "raw" table functions rather than gettable and settable?

No... in fact I believe that rawget/rawset are actually slower
in practice because they incur a function call overhead; 'normal'
get/set have their own specialized vm opcodes.

--Adam
--
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3