|
Michael Gogins wrote:Field access and dispatch to metamethods is 'free', just like
> What is "reasonable efficiency" compared to native C/C++ code?
field access and dispatch to non-virtual methods in C++. It
depends more on what you do in the methods. Straightforward code,
such as self.x=self.x+1 compiles to the same code as in C++. YMMV.
--Mike