Re: Luajit and curstom data structures
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Luajit and curstom data structures
- From: Mike Pall <mikelu-1104@...>
- Date: 2011年4月13日 12:23:01 +0200
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