lua-users home
lua-l archive

Re: LuaJIT FFI __gc metamethod?

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


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

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