[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: get/settable vs rawget/set
- From: "Adam D. Moss" <adam@...>
- Date: Wed, 01 Oct 2003 17:12:14 +0100
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