lua-users home
lua-l archive

[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