lua-users home
lua-l archive

Re: Luajit and curstom data structures

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


Michael Gogins wrote:
> What is "reasonable efficiency" compared to native C/C++ code?
Field access and dispatch to metamethods is 'free', just like
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

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