Re: LuaJIT FFI __gc metamethod?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LuaJIT FFI __gc metamethod?
- From: Mike Pall <mikelu-1102@...>
- Date: 2011年2月22日 23:20:23 +0100
Josh Haberman wrote:
> Any light you can shed on the core issue (whether __index and __newindex
> that look up a method can be as efficient as straight method calls) would be
> most helpful!
Wrapper objects always involve a certain overhead. Some of that
overhead can be reduced with hoisting. But that doesn't make it go
away completely. You'll have to check this with a real-world use
case and not a microbenchmark.
--Mike